alexmngn / react-native-authentication

492 stars 155 forks source link

server install failed due to bcrypt #5

Closed vldgeorgiev closed 7 years ago

vldgeorgiev commented 7 years ago

Just for information. Running npm install fails with this error. This is on Windows, but maybe it doesn't matter.

npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v6.10.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! bcrypt@0.8.7 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt@0.8.7 install script 'node-gyp rebuild'.

Replacing "bcrypt" with "bcrypt-nodejs" in the modules and in a couple of places it was used in the server code fixed the issue for me.

alexmngn commented 7 years ago

Please look into the repo instructions: https://github.com/nodejs/node-gyp

vldgeorgiev commented 7 years ago

Thanks. If you mean the node-gyp, it is installed already together with python, windows build tools, etc. But maybe it is a configuration issue in some of them. I will take a look.