question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed at the sha3@1.2.0 install script 'node-gyp rebuild'.

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Reactions:20
  • Comments:42

github_iconTop GitHub Comments

39reactions
diego-Gcommented, Dec 12, 2016

Resolved : sudo apt-get install build-essential

29reactions
leoZeitler1commented, Jun 7, 2018

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

npm i sha3 --save
npm i

Hope that helps

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node 10 - `node-gyp rebuild` error during npm install
Failed at the memwatch-next@0.3.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output ...
Read more >
node-gyp - npm
Node.js native addon build tool. Latest version: 9.3.1, last published: 13 days ago. Start using node-gyp in your project by running `npm i ......
Read more >
node gyp rebuild fails on install - DigitalOcean
im trying to install a nodejs application but I keep getting the same error about “node-gyp” failing to rebuild.
Read more >
Npm install command failing with message "could not find ...
When I run the npm install command, npm starts downloading the ... /s /c node-gyp rebuild npm ERR! gyp info it worked if...
Read more >
Node Red Modbus Install Error - 218465
prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild ... Failed at the @serialport/bindings@2.0.8 install script. npm ERR ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found