Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Common problems

Muhammed Tanrıkulu edited this page Oct 4, 2018 · 4 revisions

Build and tests

These are the common problems while building packages.

Windows

Python 2 missing

Symptoms

  • Sha3 cannot detect Python executable: While running npm install an error is returned with information that sha3 cannot find python executable (and points to python3 location).
  • Python syntax error: While running npm install an error is displayed indicating that python2 script was run using python3 interpreter:
gyp ERR! configure error
gyp ERR! stack Error: Command failed: ...\Python36\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax

Description

Web3 packages required python2 version and it has to be added to path.

Resolution

  • Run terminal with administrator privileges
  • Type npm --add-python-to-path='true' install --global --production windows-build-tools

Found

20 Sep 2018

Node-sass 'vendor' directory missing

Symptoms

When running npm run start:app an error is displayed indicating that node-sass\vendor directory is missing:

Error: ENOENT: no such file or directory, scandir '...\node_modules\node-sass\vendor'

Description

Node-sass building is bugged and it needs to be rebuilt.

Resolution

Run npm rebuild in the main directory.

Found

19 Sep 2018

Scrypt error

Symptoms

When running npm run start an error message appears mentioning scrypt package:

App threw an error during load
Error: error: 1114\\?\C:\electron\node_modules\scrypt\build\Release\scrypt.node
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:172:20)
    at Object.Module._extensions..node (module.js:671:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:172:20)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (module.js:586:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\electron\node_modules\scrypt\index.js:3:20)
    at Object.<anonymous> (C:\electron\node_modules\scrypt\index.js:388:3)

Description

Web3 packages required Windows Build Tools on Windows machines.

Resolution

  • Run terminal with administrator privileges
  • Type npm --add-python-to-path='true' install --global --production windows-build-tools
  • Re-build packages with npm rebuild

Workaround: run production mode (npm run compile & npm run start:prod) instead of developer mode (npm run start:app & npm run start)

Found

19 Sep 2018