Failed at the sha3@1.2.0 install script 'node-gyp rebuild'.
See original GitHub issueI was trying to install Truffle and I got the following error:
node-sass@3.8.0 postinstall /usr/lib/node_modules/truffle/node_modules/truffle-default-builder/node_modules/node-sass node scripts/build.js
“/usr/lib/node_modules/truffle/node_modules/truffle-default-builder/node_modules/node-sass/vendor/linux-x64-46/binding.node” exists. testing binary. Binary is fine; exiting. npm ERR! Linux 3.16.0-4-amd64 npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “install” “-g” “truffle” npm ERR! node v4.5.0 npm ERR! npm v2.15.9 npm ERR! code ELIFECYCLE
npm ERR! sha3@1.2.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sha3@1.2.0 install script ‘node-gyp rebuild’.
npm ERR! This is most likely a problem with the sha3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs sha3
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR!
npm ERR! npm owner ls sha3
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! /home/user/Projects/WeatherContractBlock/npm-debug.log
Issue Analytics
- State:
- Created 7 years ago
- Reactions:20
- Comments:42
Resolved : sudo apt-get install build-essential
I had the same issue. The sha3 package was included in another dependency I have added to my package.json. I cannot really explain why but the error disappeared after running
Hope that helps