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.

Impossible to unbox this box on my Mac with the latest version of Node, NPM and Truffle installed

See original GitHub issue

A 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:closed
  • Created 5 years ago
  • Comments:11

github_iconTop GitHub Comments

2reactions
mdtanrikulucommented, Aug 11, 2018

@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 have drizzle-react-components issue after rebuild and run.

0reactions
akhiluthappa1commented, Apr 11, 2022

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 ok

npm 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

at checkExecSyncError (node:child_process:828:11)
at Object.execSync (node:child_process:902:15)
at Object.installBoxDependencies (/usr/local/Cellar/truffle/5.4.12/libexec/lib/node_modules/truffle/build/webpack:/packages/box/dist/lib/utils/unbox.js:139:1)
at Object.setUpBox (/usr/local/Cellar/truffle/5.4.12/libexec/lib/node_modules/truffle/build/webpack:/packages/box/dist/lib/utils/index.js:66:1)
at /usr/local/Cellar/truffle/5.4.12/libexec/lib/node_modules/truffle/build/webpack:/packages/box/dist/box.js:183:1
at Generator.next (<anonymous>)
at fulfilled (/usr/local/Cellar/truffle/5.4.12/libexec/lib/node_modules/truffle/build/webpack:/packages/box/dist/box.js:5:42)

Truffle v5.4.12 (core: 5.4.12) Node v16.14.0

Read more comments on GitHub >

github_iconTop 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 >

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