helpeth
helpeth copied to clipboard
Does not install on osx out of the box
I seem to be running into a python issue when attempting to install this globally
$ npm install -g helpeth
> [email protected] preinstall /usr/local/lib/node_modules/helpeth/node_modules/scrypt
> node node-scrypt-preinstall.js
/usr/local/bin/helpeth -> /usr/local/lib/node_modules/helpeth/helpeth
> [email protected] install /usr/local/lib/node_modules/helpeth/node_modules/keccak
> npm run rebuild || echo "Keccak bindings compilation fail. Pure JS implementation w
ill be used."
> [email protected] rebuild /usr/local/lib/node_modules/helpeth/node_modules/keccak
> node-gyp rebuild
gyp ERR! configure error
gyp ERR! stack Error: Command failed: /usr/local/opt/python/libexec/bin/python -c imp
ort sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12)
gyp ERR! stack at ChildProcess.emit (events.js:189:13)
gyp ERR! stack at maybeClose (internal/child_process.js:978:16)
gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:395:11)
gyp ERR! stack at Socket.emit (events.js:189:13)
gyp ERR! stack at Pipe._handle.close (net.js:613:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/usr/local/Cellar/node/11.4.0/bin/node" "/usr/local/lib/node_module
s/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/helpeth/node_modules/keccak
gyp ERR! node -v v11.4.0
gyp ERR! node-gyp -v v3.8.0
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! /Users/harrymoreno/.npm/_logs/2018-12-18T22_47_46_030Z-debug.log
Keccak bindings compilation fail. Pure JS implementation will be used.
> [email protected] install /usr/local/lib/node_modules/helpeth/node_modules/scrypt
perhaps an issue with the Keccak dependency?
python -V returns 3.7.1
What does python2 -V return because node currently requires legacy Python.
nothing, I ran this on the newest MacBook. And it no longer ships with python2.
Attn: maintainers, if this issue is beyond the scope of helpeth please close it. I see now this is a larger issue with the node ecosystem depending on python2 for building dependencies.
From above: /usr/local/opt/python/libexec/bin/python looks like where homebrew would put Python.
Try $ /usr/bin/python -V to see what the Apple "system" Python is. I dobut that will be Python 3.
@cclauss oh that prints 2.7.10