2

I'm trying to install Zeppelin to use in conjunction with Truffle. I've been trying to figure out this error for hours with no success. When installing I get the following output:

Zachs-MBP:oz-workspace zach-eberhart$ sudo npm install zeppelin-solidity --python=python2.7
Password:

> scrypt@6.0.3 preinstall /Users/zach-eberhart/Desktop/truffle/oz-workspace/node_modules/scrypt
> node node-scrypt-preinstall.js

Error: Error: Command failed: ./configure
/bin/sh: ./configure: Permission denied


> scrypt@6.0.3 install /Users/zach-eberhart/Desktop/truffle/oz-workspace/node_modules/scrypt
> node-gyp rebuild

gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/zach-eberhart/Desktop/truffle/oz-workspace/node_modules/scrypt/build'
gyp ERR! System Darwin 16.5.0
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/zach-eberhart/Desktop/truffle/oz-workspace/node_modules/scrypt
gyp ERR! node -v v8.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN tutorialtoken@1.0.0 No description
npm WARN tutorialtoken@1.0.0 No repository field.

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!     /Users/zach-eberhart/.npm/_logs/2017-09-01T21_35_34_041Z-debug.log
2

Fixed!

Solutions tried (in order):

  • update node and npm (stable version)
  • use earlier version of Python (I use 3.5): --python=python2.7
  • install scrypt manually: brew install libgcrypt
  • (re)install or update node-gyp: npm install -g node-gyp
  • set npm python path npm config set python /path/to/executable/python2.7
  • update node and npm (bleeding edge)

I'm not sure what did and did not contribute to the success, but I was getting errors until I installed the bleeding edge versions of node and npm, so if anyone is getting the scrypt@6.0.3 install: 'node-gyp rebuild' error then maybe start with that.

|improve this answer|||||
  • You could have just installed a python 2.7 virtual environment and run activated it for the install – Samuel Dare Oct 27 '17 at 3:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.