jdx/npm-register

Python >= v2.5.0 & < 3.0.0 is required

peteroreil opened this issue · 3 comments

Readme fails to identify Python is required as a dependency

jdx commented

what requires it?

Apologies. I should have appended the log.
Its a node-gyp dependency

user@host:~$ npm install npm-register
npm WARN deprecated node-uuid@1.4.7: Use uuid module instead

> bcrypt@0.8.7 install /home/ubuntu/node_modules/bcrypt
> node-gyp rebuild

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp ERR! configure error 
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (/home/ubuntu/.nvm/v6.0.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:401:14)
gyp ERR! stack     at /home/ubuntu/.nvm/v6.0.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:330:11
gyp ERR! stack     at F (/home/ubuntu/.nvm/v6.0.0/lib/node_modules/npm/node_modules/which/which.js:63:16)
gyp ERR! stack     at E (/home/ubuntu/.nvm/v6.0.0/lib/node_modules/npm/node_modules/which/which.js:72:29)
gyp ERR! stack     at /home/ubuntu/.nvm/v6.0.0/lib/node_modules/npm/node_modules/which/which.js:81:16
gyp ERR! stack     at /home/ubuntu/.nvm/v6.0.0/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
gyp ERR! stack     at /home/ubuntu/.nvm/v6.0.0/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:117:15)
gyp ERR! System Linux 4.4.0-1020-aws
gyp ERR! command "/home/ubuntu/.nvm/v6.0.0/bin/node" "/home/ubuntu/.nvm/v6.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ubuntu/node_modules/bcrypt
gyp ERR! node -v v6.0.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok 

Python is installed on this machine, but node-gyp does not support the installed version.
As per node-gyp docs python (v2.7 recommended, v3.x.x is not supported)

I would think that it would be best to list installation dependencies and setup /configuration dependencies
in the README.

jdx commented