This repository was archived by the owner on Oct 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Common problems
Muhammed Tanrıkulu edited this page Oct 4, 2018
·
4 revisions
These are the common problems while building packages.
- Sha3 cannot detect Python executable: While running
npm installan error is returned with information that sha3 cannot find python executable (and points to python3 location). - Python syntax error: While running
npm installan 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
Web3 packages required python2 version and it has to be added to path.
- Run terminal with administrator privileges
- Type
npm --add-python-to-path='true' install --global --production windows-build-tools
20 Sep 2018
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'
Node-sass building is bugged and it needs to be rebuilt.
Run npm rebuild in the main directory.
19 Sep 2018
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)
Web3 packages required Windows Build Tools on Windows machines.
- 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)
19 Sep 2018