Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm unable to install scrypt. node-gyp rebuild

I want to run a blockchain application, but I got this error.

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 have tried deleting node_modules, npm cache verify and npm install again. I have uninstalled and reinstalled npm and nodejs. My npm version is 6.12.0 and node version v12.13.0

like image 662
Frieda Avatar asked Nov 07 '22 12:11

Frieda


1 Answers

https://github.com/ethereum/web3.js/issues/1066#issuecomment-338841841

From this link:

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

And also, I think that you can follow steps to fix node-gyp:

https://github.com/nodejs/node-gyp

like image 187
canmustu Avatar answered Nov 14 '22 23:11

canmustu