Impossible to unbox this box on my Mac with the latest version of Node, NPM and Truffle installed
See original GitHub issueA simple “truffle unbox drizzle” completely fails with a few warnings and 1 error that says:
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/sarbogast/dev/cryptoseries-react/node_modules/sha3
gyp ERR! node -v v10.8.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
npm WARN drizzle-box@1.0.0 No description
npm WARN drizzle-box@1.0.0 No repository field.
npm WARN drizzle-box@1.0.0 No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 install: `node install`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
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.
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! /Users/sarbogast/.npm/_logs/2018-08-10T07_49_01_296Z-debug.log
The complete log file is here: 2018-08-10T07_47_39_922Z-debug.log
Issue Analytics
- State:
- Created 5 years ago
- Comments:11
Top Results From Across the Web
Cannot install truffle. Node.js and npm are installed
I read online that truffle does not support node v13, so i uninstalled the one i had (v15 or sthing) and switched to...
Read more >Installation - Truffle Suite
Note: to install the latest version of npm , run npm i -g npm. Node Package Manager (NPM) recommends installing Node.js and npm...
Read more >Unable to install truffle unboxmetacoin in VScode editor
Starting unbox... ================= ✓ Preparing to download box ✖ Downloading Unbox failed! Error: connect ECONNREFUSED 127.0.0.1:80 at ...
Read more >How to create a new project using Truffle and OpenZeppelin ...
In this tutorial, I will show you step-by-step how to create a new blockchain project, using Truffle framework and Open Zeppelin smart contracts...
Read more >Npm install stuck - Caritas Castellaneta
Installation guides for NodeJS can be found here open in new window. ... We can either reinstall npm with a node version manager...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sarbogast Please try to run
npm rebuild
. It should solve the problem. It worked at least for me.Edit: Another option is
yarn
if you havedrizzle-react-components
issue after rebuild and run.Still facing the same error on Mac OS Monterey.
npm ERR! 3 warnings and 1 error generated. npm ERR! make: *** [Release/obj.target/sha3/src/addon.o] Error 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error:
make
failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:520:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) npm ERR! gyp ERR! System Darwin 21.2.0 npm ERR! gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild” npm ERR! gyp ERR! cwd /Users/akhil/drizzle_tutorial/app/node_modules/sha3 npm ERR! gyp ERR! node -v v16.14.0 npm ERR! gyp ERR! node-gyp -v v9.0.0 npm ERR! gyp ERR! not oknpm ERR! A complete log of this run can be found in: npm ERR! /Users/akhil/.npm/_logs/2022-04-11T12_45_35_939Z-debug-0.log
Truffle v5.4.12 (core: 5.4.12) Node v16.14.0