Web3.js: can not install web3

Created on 22 Sep 2017  ·  34Comments  ·  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:\Users\Ali\AppData\Roaming\npmnode_modules\npm\bin\node-gyp-bin\....node_modules\node-gyp\bin\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:\Users\Ali\AppData\Roaming\npmnode_modules\npmnode_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at Object. (C:\Users\Ali\AppData\Roaming\npmnode_modules\npmnode_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at C:\Users\Ali\AppData\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:\Users\Ali\AppData\Roaming\npm-cache_logs\2017-09-22T10_26_48_623Z-debug.log

c:\mylocal>

Most helpful comment

I've solved this using the following steps

  • npm install --global --production windows-build-tools
  • node-gyp configure --msvs_version=2015
  • npm config set python /path/to/executable/python2.7
  • npm install web3 --save

All 34 comments

Im having the same issue. I faced in other implementation with the same issue and I solved installing visual studio or a couple of third-party lib.
but in this case, it doesnt works, I tried
npm install --global --production windows-build-tools

I've solved this using the following steps

  • npm install --global --production windows-build-tools
  • node-gyp configure --msvs_version=2015
  • npm config set python /path/to/executable/python2.7
  • npm install web3 --save

take a look this guideline https://github.com/nodejs/node-gyp

I want a specific version web3 @1.0.0-beta.26
Run as the administrator
npm install --global --production windows-build-tools

npm -g install npm@next
npm install --save [email protected]

thanks a lot jupadev

thanks a alot dacho68 too

My problem was resolved just to run below command, especially I'm using pyenv for multiple python versions, so $HOME/.pyenv/versions/2.7.x/bin/python worked for me.

npm config set python /path/to/executable/python2.7

On Centos I resolved by:

sudo yum install centos-release-scl
sudo yum install devtoolset-7-gcc*
scl enable devtoolset-7 bash
which gcc
gcc --version

Hello , After install all windows build tools and node-gyp package , I am still getting the error .

Can any one please help me in resolving this issue.

log :

C:\Users\Simplyfi\Desktop\aditya\work_space\web\node\new_stf\n\stf_web3js>npm install web3 --save
npm WARN deprecated [email protected]: Use mz or fs-extra^3.0 with Promise Support
npm WARN deprecated tar.[email protected]: ⚠️ WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instea
d: https://npmjs.com/tar

[email protected] preinstall C:\Users\Simplyfi\Desktop\aditya\work_space\web\node\new_stf\n\stf_web3jsnode_modules\scrypt
node node-scrypt-preinstall.js

[email protected] install C:\Users\Simplyfi\Desktop\aditya\work_space\web\node\new_stf\n\stf_web3jsnode_modules\scrypt
node-gyp rebuild

C:\Users\Simplyfi\Desktop\aditya\work_space\web\node\new_stf\n\stf_web3jsnode_modules\scrypt>if not defined npm_config_node_gyp (node "C:\Users\Simplyfi\AppData\Roaming\npmnode_modules\npmnode_modules\npm-lifecycle\node-gyp-bin\....node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\Simplyfi\AppData\Roaming\npmnode_modules\npmnode_modules\npm-lifecyclenode_modules\node-gyp\bin\node-gyp.js" rebuild )
Warning: Missing input files:
C:\Users\Simplyfi\Desktop\aditya\work_space\web\node\new_stf\n\stf_web3jsnode_modules\scrypt\build..\scrypt\win\include\config.h
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Copying scrypt/win/include/config.h to scrypt/scrypt-1.2.0/config.h
The system cannot find the file specified.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(356,5): error MSB6006: "CL.exe" exited with code -1073741515. [
C:\Users\Simplyfi\Desktop\aditya\work_space\web\node\new_stf\n\stf_web3jsnode_modules\scrypt\build\copied_files.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(356,5): error MSB6006: "CL.exe" exited with code -1073741515. [
C:\Users\Simplyfi\Desktop\aditya\work_space\web\node\new_stf\n\stf_web3jsnode_modules\scrypt\build\scrypt_wrapper.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\Simplyfi\AppData\Roaming\npmnode_modules\npmnode_modules\npm-lifecyclenode_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Simplyfi\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Simplyfi\Desktop\aditya\work_space\web\node\new_stf\n\stf_web3jsnode_modules\scrypt
gyp ERR! node -v v8.10.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
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:\Users\Simplyfi\AppData\Roaming\npm-cache_logs\2018-03-28T05_29_51_133Z-debug.log

@ADitya024 same issue..anyone please help..

+1 @ADitya024 Same Issue

Thanks for the solution:)

Hello, any solution for mac users?

@chema2708 Hello , Have you solved this problem?

npm install web3 --save Error

anybody please help. Thanks

npm WARN deprecated tar.[email protected]: ⚠️ WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar
npm WARN deprecated [email protected]: Use mz or fs-extra^3.0 with Promise Support

[email protected] preinstall /Users/tianlele/Documents/vevid_sc/vevid03/node_modules/scrypt
node node-scrypt-preinstall.js

[email protected] install /Users/tianlele/Documents/vevid_sc/vevid03/node_modules/scrypt
node-gyp rebuild

gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "/path/to/executable/python2.7", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:483:19)
gyp ERR! stack at PythonFinder. (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:397:16)
gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:68:16)
gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:80:29)
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:89:16
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:42:5
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/node_modules/isexe/mode.js:8:5
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/tianlele/Documents/vevid_sc/vevid03/node_modules/scrypt
gyp ERR! node -v v8.11.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.

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:

@gitHub-Tienlele Looks like your Python path is not in defined. This means either you don´t have python installed or you have a custom path.
To see if you have it installed just run "which python" in the console, if it´s installed will throw the path to python executable and then you need to define it in your $HOME or env variables.
If it´s not installed just look for a tutorial on how to install it and make sure you download version 2.7 (sometimes it installs all versions and you just need to jump between them)
Then run "npm install --python=python2.7"
and then run "npm install [email protected] --save"

I had the same issue till yesterday,
please refer to this link
https://github.com/Microsoft/nodejs-guidelines/blob/master/windows-environment.md#compiling-native-addon-modules
I followed instructions to manually setup the environment.
install vs 2017 community version with "c++ for desktop development" workload as mentioned and do the next steps. this much should be enough to get you running.
Thanks, good luck 👍

After installing the windows-build-tools and setting the python path I am still facing the below issue.

Admin@Admin-PC MINGW64 ~/inbox

$ npm install --save-dev [email protected]

npm WARN deprecated [email protected]: Use mz or fs-extra^3.0 with Promise Support
npm WARN deprecated tar.[email protected]: ⚠️ WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar

[email protected] preinstall C:\Users\Admin\inboxnode_modules\scrypt
node node-scrypt-preinstall.js

[email protected] install C:\Users\Admin\inboxnode_modules\scrypt
node-gyp rebuild

C:\Users\Admin\inboxnode_modules\scrypt>if not defined npm_config_node_gyp (node "C:\Users\Admin\AppData\Roaming\npmnode_modules\npmnode_modules\npm-lifecycle\node-gyp-bin\....node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\Admin\AppData\Roaming\npmnode_modules\npmnode_modules\node-gyp\bin\node-gyp.js" rebuild )
Warning: Missing input files:
C:\Users\Admin\inboxnode_modules\scrypt\build..\scrypt\win\include\config.h
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Copying scrypt/win/include/config.h to scrypt/scrypt-1.2.0/config.h
The system cannot find the file specified.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(356,5): error MSB6006: "CL.exe" exited with code -1073741515. [C:\Users\Admin\inboxnode_modules\scrypt\build\copied_files.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(356,5): error MSB6006: "CL.exe" exited with code -1073741515. [C:\Users\Admin\inboxnode_modules\scrypt\build\scrypt_wrapper.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\Admin\AppData\Roaming\npmnode_modules\npmnode_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 6.1.7600
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Admin\inboxnode_modules\scrypt
gyp ERR! node -v v8.11.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

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:\Users\Admin\AppData\Roaming\npm-cache_logs\2018-08-09T14_54_53_358Z-debug.log

Node 10.9.0
NPM 6.4.0

239 verbose stack Error: [email protected] install: node-gyp rebuild
239 verbose stack Exit status 1
239 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:304:16)
239 verbose stack at EventEmitter.emit (events.js:180:13)
239 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
239 verbose stack at ChildProcess.emit (events.js:180:13)
239 verbose stack at maybeClose (internal/child_process.js:936:16)
239 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
240 verbose pkgid [email protected]
241 verbose cwd /home/user/api
242 verbose Linux 4.4.0-127-generic
243 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "web3"
244 verbose node v9.11.2
245 verbose npm v6.4.0
246 error code ELIFECYCLE
247 error errno 1
248 error [email protected] install: node-gyp rebuild
248 error Exit status 1
249 error Failed at the [email protected] install script.
249 error This is probably not a problem with npm. There is likely additional logging output above.
250 verbose exit [ 1, true ]

I am still facing the same issue, even after reinstalling windows-build-tools and python 2.7. This npm hell makes me feel really miserable.

$ npm install --save web3
npm WARN deprecated [email protected]: Use mz or fs-extra^3.0 with Promise Support
npm WARN deprecated [email protected]: ⚠️  WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar

> [email protected] preinstall C:\src\Personal\ens-registrar\node_modules\scrypt
> node node-scrypt-preinstall.js


> [email protected] install C:\src\Personal\ens-registrar\node_modules\scrypt
> node-gyp rebuild


C:\src\Personal\ens-registrar\node_modules\scrypt>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Systém nemůže nalézt uvedenou cestu.
gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:345:16)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\src\Personal\ens-registrar\node_modules\scrypt
gyp ERR! node -v v10.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

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:\Users\david\AppData\Roaming\npm-cache\_logs\2018-10-30T16_38_45_698Z-debug.log

I've solved this using the following steps

  • npm install --global --production windows-build-tools
  • node-gyp configure --msvs_version=2015
  • npm config set python /path/to/executable/python2.7
  • npm install web3 --save

It works for me

it works for me

Thanks a ton @jupadev !! 🙏
For linux users, here are the following steps in case if you face build errors:

  1. npm install -g node-gyp
  2. sudo yum install make
  3. npm config set python /path/to/executable/python2.7
  4. yum groupinstall 'Development Tools'
  5. npm install web3 --save

I've solved this using the following steps

  • npm install --global --production windows-build-tools
  • node-gyp configure --msvs_version=2015
  • npm config set python /path/to/executable/python2.7
  • npm install web3 --save

It works for me

How did you create your binding.gyp file as i cant proceed from step 2. This is my error screenshot after i run node-gyp configure --msvs_version=2015

image

I want a specific version web3 @1.0.0-beta.26
Run as the administrator
npm install --global --production windows-build-tools

npm -g install npm@next
npm install --save [email protected]

oh my gosh, you did my day! 🙏🏼

solved on ubuntu 18.04 using following commands:

sudo apt install build-essential
sudo npm install -g node-gyp
npm install web3

I think the root of the problem is basically an incompatibility between the node version and the node-gyp version. My OS is Mac OSX,the error is :

make: * [Release/obj.target/scrypt/src/node-boilerplate/scrypt_common.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:196:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:256:12)
gyp ERR! System Darwin 18.5.0
gyp ERR! command "/usr/local/Cellar/node/12.1.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/wilson/develop/workspace_evatar/being/projects/being-cbbp-desktop-backend/node_modules/scrypt
gyp ERR! node -v v12.1.0
gyp ERR! node-gyp -v v3.8.0
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.

I solved this problem after downgrading to node v10.x.

I'm having a similar problem after following the steps mentioned above, could really do with some help trying to install [email protected] please.
This is what I keep getting.

PS C:\Windows\system32> mkdir test
mkdir : An item with the specified name C:\Windows\system32\test already exists.
At line:1 char:1

  • mkdir test
  • ~~

    • CategoryInfo : ResourceExists: (C:\Windows\system32\test:String) [New-Item], IOException

    • FullyQualifiedErrorId : DirectoryExist,Microsoft.PowerShell.Commands.NewItemCommand

PS C:\Windows\system32> siaosidir test
siaosidir : The term 'siaosidir' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • siaosidir test
  • ~~~~~

    • CategoryInfo : ObjectNotFound: (siaosidir:String) [], CommandNotFoundException

    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> georgedir test
georgedir : The term 'georgedir' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • georgedir test
  • ~~~~~

    • CategoryInfo : ObjectNotFound: (georgedir:String) [], CommandNotFoundException

    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> cd test
PS C:\Windows\system32\test> npm install --save [email protected]

[email protected] preinstall C:\Windows\system32\testnode_modules\scrypt
node node-scrypt-preinstall.js

[email protected] install C:\Windows\system32\testnode_modules\scrypt
node-gyp rebuild

C:\Windows\system32\testnode_modules\scrypt>if not defined npm_config_node_gyp (node "C:\Program Files\nodejsnode_modules\npmnode_modules\npm-lifecycle\node-gyp-bin\....node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejsnode_modules\npmnode_modules\node-gyp\bin\node-gyp.js" rebuild )
Warning: Missing input files:
C:\Windows\system32\testnode_modules\scrypt\build..\scrypt\win\include\config.h
MSBUILD : error MSB1009: Project file does not exist.
Switch: build/binding.sln
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejsnode_modules\npmnode_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:180:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Windows\system32\testnode_modules\scrypt
gyp ERR! node -v v9.10.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Windows\system32\test\package.json'
npm WARN test No description
npm WARN test No repository field.
npm WARN test No README data
npm WARN test No license 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:\Users\HOME\AppData\Roaming\npm-cache_logs\2019-06-04T23_20_38_355Z-debug.log
PS C:\Windows\system32\test> node-gyp confugure --msvs_version+2015

Usage: node-gyp [options]

where is one of:
- build - Invokes msbuild and builds the module
- clean - Removes any generated build files and the "out" dir
- configure - Generates MSVC project files for the current module
- rebuild - Runs "clean", "configure" and "build" all at once
- install - Install node development files for the specified node version.
- list - Prints a listing of the currently installed node development files
- remove - Removes the node development files for the specified version

[email protected] C:\Users\HOME\AppData\Roaming\npmnode_modules\node-gyp
[email protected]
PS C:\Windows\system32\test> npm config set python /path/to/executable/python2.7
PS C:\Windows\system32\test> npm install [email protected]

[email protected] preinstall C:\Windows\system32\testnode_modules\scrypt
node node-scrypt-preinstall.js

[email protected] install C:\Windows\system32\testnode_modules\scrypt
node-gyp rebuild

C:\Windows\system32\testnode_modules\scrypt>if not defined npm_config_node_gyp (node "C:\Program Files\nodejsnode_modules\npmnode_modules\npm-lifecycle\node-gyp-bin\....node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejsnode_modules\npmnode_modules\node-gyp\bin\node-gyp.js" rebuild )
Warning: Missing input files:
C:\Windows\system32\testnode_modules\scrypt\build..\scrypt\win\include\config.h
MSBUILD : error MSB1009: Project file does not exist.
Switch: build/binding.sln
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejsnode_modules\npmnode_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:180:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Windows\system32\testnode_modules\scrypt
gyp ERR! node -v v9.10.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Windows\system32\test\package.json'
npm WARN test No description
npm WARN test No repository field.
npm WARN test No README data
npm WARN test No license 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:\Users\HOME\AppData\Roaming\npm-cache_logs\2019-06-04T23_40_52_735Z-debug.log
PS C:\Windows\system32\test> npm [email protected] install: 'node-gyp rebuild'Exit status 1

Usage: npm

where is one of:
access, adduser, bin, bugs, c, cache, completion, config,
ddp, dedupe, deprecate, dist-tag, docs, doctor, edit,
explore, get, help, help-search, i, init, install,
install-test, it, link, list, ln, login, logout, ls,
outdated, owner, pack, ping, prefix, profile, prune,
publish, rb, rebuild, repo, restart, root, run, run-script,
s, se, search, set, shrinkwrap, star, stars, start, stop, t,
team, test, token, tst, un, uninstall, unpublish, unstar,
up, update, v, version, view, whoami

npm -h quick help on
npm -l display full usage info
npm help search for help on
npm help npm involved overview

Specify configs in the ini-formatted file:
C:\Users\HOME.npmrc
or on the command line via: npm --key value
Config info can be viewed via: npm help config

[email protected] C:\Program Files\nodejsnode_modules\npm
PS C:\Windows\system32\test>

Does anyone have any insight on resolving this when deploying your application to a 3rd party service like Now or Heroku?

I haven't tried any of that yet git support recommends contacting the package provider as it isn't a github product. Thanks for replying , 4th day and still looking for a fix. I did try another suggestion to change the package name to ethereum/web3.[email protected] instead of [email protected], this gives me no package json error, which is also being a headache with none of the options for this problem I've come across working either. Other installs are installing with a problem.

Thank you Ahmed I've tried heroku and am thankful you gave me the idea but
unfortunately I still have no response
and I'm still stuck.

Cheers
Anthony

On Sat, Jun 8, 2019 at 12:38 PM Ahmed Belhadj notifications@github.com
wrote:

Does anyone have any insight on resolving this when deploying your
application on a 3rd party service like Now or Heroku?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ethereum/web3.js/issues/1066?email_source=notifications&email_token=AMIBGIBRBIPMGL7OSO4K5RLPZLWNRA5CNFSM4D4CHWF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXHHRHA#issuecomment-500070556,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMIBGICJD3WHB57VXOH7M5DPZLWNRANCNFSM4D4CHWFQ
.

thanks @adrianbona was great that worked out for me
thank u very much....
how do you get all this stuff i have been searching all this for the day now.......

thanks @adrianbona was great that worked out for me
thank u very much....
how do you get all this stuff i have been searching all this for the day now.......

Just a pretty coincidence

Was this page helpful?
0 / 5 - 0 ratings