Command 'truffle unbox react' not working.
See original GitHub issueWith:
- Linux Fedora 27
- Node 8.9.4
- Truffle 4.0.4
And these commands:
mkdir truffle-box-example
cd truffle-box-example
truffle unbox react
I got this weird error:
vjE0FxA= but got sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w==. (2069 bytes)
npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
make: g++: Command not found
make: *** [keccak.target.mk:113: Release/obj.target/keccak/src/addon.o] Error 127
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/mlima/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.14.11-300.fc27.x86_64
gyp ERR! command "/home/mlima/.nvm/versions/node/v8.9.4/bin/node" "/home/mlima/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/mlima/Projects/truffle-box-example/node_modules/keccak
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! keccak@1.4.0 rebuild: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the keccak@1.4.0 rebuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /home/mlima/.npm/_logs/2018-01-10T18_41_44_213Z-debug.log
make: g++: Command not found
make: *** [copied_files.target.mk:22: Release/obj.target/copied_files.node] Error 127
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/mlima/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.14.11-300.fc27.x86_64
gyp ERR! command "/home/mlima/.nvm/versions/node/v8.9.4/bin/node" "/home/mlima/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/mlima/Projects/truffle-box-example/node_modules/scrypt
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN The package dotenv is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scrypt@6.0.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scrypt@6.0.3 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! /home/mlima/.npm/_logs/2018-01-10T18_41_47_599Z-debug.log
at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
Any ideas?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:7
Top Results From Across the Web
Truffle Unbox React Error · Issue #3112 - GitHub
It looks like unboxing is failing on the npm ci command because you're using npm 5.6.0 and npm ci didn't exist until 5.7.0....
Read more >Error in unboxing truffle-react on Windows
Run command prompt as administrator; npm install --global--production windows-build-tools; npm install --global node-gyp ... truffle compile truffle migrate.
Read more >Truffle Unbox Error while using truffle unbox react
Failed at the scrypt@6.0.3 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above....
Read more >React Truffle Box
Run the unbox command using 1 of 2 ways. # Install Truffle globally and run `truffle unbox` $ npm install -g truffle $...
Read more >React Truffle Box - Start using smart contracts from a react app
First ensure you are in a new and empty directory. Run the unbox command via npx and skip to step 3. This will...
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
same here on Mac, must be something wrong with my default python version
I fix it by setting my default python version back to 2.7(https://stackoverflow.com/a/38806058)
the reason is
node-gyp
only support python2@matheusml I think your problem maybe due to
make
orgcc
Truffle unbox drizzle fails. Issue:
56619 verbose pkgid scrypt@6.0.3 56620 verbose cwd /Users/karadi/Developer/drizzle/app 56621 verbose Darwin 18.6.0 56622 verbose argv "/Users/karadi/.nvm/versions/node/v10.16.0/bin/node" "/Users/karadi/.nvm/versions/node/v10.16.0/bin/npm" "install" 56623 verbose node v10.16.0 56624 verbose npm v6.9.0 56625 error code ELIFECYCLE 56626 error errno 1 56627 error scrypt@6.0.3 install:
node-gyp rebuild56627 error Exit status 1 56628 error Failed at the scrypt@6.0.3 install script. 56628 error This is probably not a problem with npm. There is likely additional logging output above.