Web3.js: error on installing web3

Created on 22 Sep 2017  路  1Comment  路  Source: ChainSafe/web3.js

hi i have tried to install web3 but every time i fail, this is what I receive as an error

here is the problem occurs at first it installs and proceds but nearly at the end it fails

c:\mylocal>npm install web3 --save
npm WARN deprecated [email protected]: Use mz or fs-extra^3.0 with Promise Support
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

[email protected] preinstall c:\mylocalnode_modules\scrypt
node node-scrypt-preinstall.js

[email protected] install c:\mylocalnode_modules\scrypt
node-gyp rebuild

c:\mylocalnode_modules\scrypt>if not defined npm_config_node_gyp (node "C:\UsersAliAppData\Roaming\npmnode_modules\npmbin\node-gyp-bin\....node_modules\node-gypbin\node-gyp.js" rebuild ) else (node "" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at Object.failNoPython (C:\UsersAliAppData\Roaming\npmnode_modules\npmnode_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at Object. (C:\UsersAliAppData\Roaming\npmnode_modules\npmnode_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at C:\UsersAliAppData\Roaming\npmnode_modules\npmnode_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Ali\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd c:\mylocalnode_modules\scrypt
gyp ERR! node -v v6.11.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\UsersAliAppData\Roaming\npm-cache_logs\2017-09-22T10_26_48_623Z-debug.log

c:\mylocal>

Most helpful comment

You actually need to have python and Visual Studio Build Tools installed on your windows PC for this to work.

Thankfully, there's a npm package for this:
npm install --global windows-build-tools
If you want it to also configure python's path for you, do this instead:
npm --add-python-to-path install --global windows-build-tools

>All comments

You actually need to have python and Visual Studio Build Tools installed on your windows PC for this to work.

Thankfully, there's a npm package for this:
npm install --global windows-build-tools
If you want it to also configure python's path for you, do this instead:
npm --add-python-to-path install --global windows-build-tools

Was this page helpful?
0 / 5 - 0 ratings