Skip to content
This repository has been archived by the owner on Aug 6, 2020. It is now read-only.

Can't unpack (Ubuntu) #42

Open
ghost opened this issue Jan 2, 2020 · 1 comment
Open

Can't unpack (Ubuntu) #42

ghost opened this issue Jan 2, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Jan 2, 2020

I'm trying to unpack the start kit tutorial following the given instructions.

I am using fresh install of Truffle, Gnache, NodeJS, npm and OpenZepplinSDK.

It fails at "openzeppelin unpack tutorial" with the following error:

✖ Downloading kit from https://github.com/openzeppelin/tutorial-kit.git Failed to download and unpack kit from https://github.com/openzeppelin/tutorial-kit.git. Details: Command failed: npm install && cd client && npm install npm WARN deprecated [email protected]: This package has been renamed to @openzeppelin/test-helpers. Please update your dependency, or you will no longer receive updates. npm WARN deprecated [email protected]: WARNING: This package has been renamed to @truffle/hdwallet-provider. npm WARN deprecated [email protected]: WARNING: This package has been renamed to @truffle/config. npm WARN deprecated [email protected]: WARNING: This package has been renamed to @truffle/provider. npm WARN deprecated [email protected]: WARNING: This package has been renamed to @truffle/error. npm WARN deprecated @types/[email protected]: This is a stub types definition for bignumber.js (https://github.com/MikeMcl/bignumber.js/). bignumber.js provides its own type definitions, so you don't need @types/bignumber.js installed! npm WARN deprecated [email protected]: WARNING: This package has been renamed to @truffle/interface-adapter. npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. make: g++: Command not found make: *** [Release/obj.target/keccak/src/addon.o] Error 127 gyp ERR! build error gyp ERR! stack Error:makefailed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:305:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! System Linux 4.15.0-72-generic gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/ben/Documents/Development/Ethereum/OZtutorial/node_modules/ganache-core/node_modules/keccak gyp ERR! node -v v13.5.0 gyp ERR! node-gyp -v v5.0.5 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] rebuild:node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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/ben/.npm/_logs/2020-01-02T18_19_20_724Z-debug.log
make: g++: Command not found
make: *** [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 (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:305:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 4.15.0-72-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ben/Documents/Development/Ethereum/OZtutorial/node_modules/ganache-core/node_modules/scrypt
gyp ERR! node -v v13.5.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
make: g++: Command not found
make: *** [Release/obj.target/secp256k1/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 (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:305:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 4.15.0-72-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ben/Documents/Development/Ethereum/OZtutorial/node_modules/ganache-core/node_modules/secp256k1
gyp ERR! node -v v13.5.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] rebuild: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] rebuild 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/ben/.npm/_logs/2020-01-02T18_19_23_453Z-debug.log
make: g++: Command not found
make: *** [Release/obj.target/sha3/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 (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:305:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 4.15.0-72-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ben/Documents/Development/Ethereum/OZtutorial/node_modules/ganache-core/node_modules/sha3
gyp ERR! node -v v13.5.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/ganache-core/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/ganache-core/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.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/ben/.npm/_logs/2020-01-02T18_19_29_124Z-debug.log

`

@abcoathup
Copy link
Contributor

Hi @delmol,

Sorry to hear that you had issues unpacking.

Unfortunately there was an issue with node 13 and sha3, which currently impacts the starter kit.
OpenZeppelin/openzeppelin-sdk#1289

If you change your node version (e.g. using nvm) then you should be able to unpack. I currently use:

$ node --version
v10.16.0

@abcoathup abcoathup added the bug Something isn't working label Jan 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant