web3.js icon indicating copy to clipboard operation
web3.js copied to clipboard

npm install web3 broken

Open ghost opened this issue 8 years ago • 5 comments

Installing web3 1.0 with npm fails with node10/npm6 because of an error in sha3. See this issue for details.

ghost avatar Apr 26 '18 16:04 ghost

Doesn't work with yarn either ^^^ Is there any timeline on solving this issue, or a good workaround until the JavaScript replacement is fully integrated?

BKDaugherty avatar Apr 28 '18 18:04 BKDaugherty

I submitted a PR in the sha3 repo fixing this issue.

ghost avatar Apr 28 '18 18:04 ghost

Working now! Thank you @NoahHydro!!!

BKDaugherty avatar Apr 28 '18 22:04 BKDaugherty

Having exact same issue here. Hope it can get fixed ASAP. Thank you.

@BKDaugherty, maybe we can hardcode the patch to get it done.

bitsliu avatar Apr 29 '18 09:04 bitsliu

Hi everyone, Suddenly since yesterday I cannot npm install web3 any more. I am using MacOs and hombrew node. The only change that might have caused this is that I think I ran a brew update and brew upgrade recently. npm -v 6.9.0 node -v v12.1.0

The problem seems to have something to do with sha3 and node-gyp. I saw this issue which seems to be related. Can anyone please help me out or point me to a solution for macOS with my node and npm versions?

error message: 10 warnings and 12 errors generated. make: *** [Release/obj.target/sha3/src/addon.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/xyz/Desktop/udemy/udemy-eth-sol/projects/kickstart/node_modules/sha3 gyp ERR! node -v v12.1.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN [email protected] requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] No description npm WARN [email protected] No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/scrypt): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp rebuild npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

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.

gitpusha avatar May 06 '19 15:05 gitpusha