I have the same issue as everyone i tried everythong but the prob still there please can u help me with it?
[email protected] install:node-pre-gyp install --fallback-to-build``
package.json:
"dependencies": {
"bcryptjs": "^2.4.3",
"body-parser": "^1.18.3",
"express": "^4.16.4",
"mongoose": "^5.4.0",
"morgan": "^1.9.1",
"multer": "^1.4.1",
"request": "^2.88.0"
},
2018-12-30T18_54_42_961Z-debug.log
VERSIONS:
npm: 6.4.1
node: v10.14.2
Any solutions to this
Same here
Install dependencies. It's mentioned everywhere in the README
i installed dependencies, locally and globally but nothing changed!
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
Facing same issue.
Old version works fine.
version 3.0.1 works fine
Version 3.0.2 same problem.
I think we should follow the instruction to install this library. Please click here
Same issue, I noticed I could not hash passwords for my users after I updated the node version.
Big security issue
I installed the dependencies but still no prebuild ...
tried?
npm install --global --production windows-build-tools
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.3/bcrypt_lib-v3.0.3-node-v64-win32-x64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
@3.0.2 works since node-v64 is released, 3.0.3 does not have this version under releases.
@multinerd I have the same issue. Why there's no 3.0.3's v64?
3.0.2 does work on Node 10 / macOS.
@djanowski - 3.0.2 did not work on my Mac.
[email protected] install: node-pre-gyp install --fallback-to-build
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.
Fixed it by installing the dependencies: https://github.com/kelektiv/node.bcrypt.js/wiki/Installation-Instructions.
There is also this the bcrypt alternative that you can consider. It is optimized in JavaScript with zero dependencies.
it works for me after installing visual studio 2019( c++ desktop development ), python 3.8.0 and
npm install -g node-gyp
npm install --g --production windows-build-tools
npm install bcrypt
Please try this it will definitely work, this error occur because you are not using a stable version of node
npm install --save bcryptjs && npm uninstall --save bcrypt
@diamond95 answer worked for me, just pointing it out!
Steps:-
1 npm install --global --production windows-build-tools(from the shell as administrator)
2 npm i bcrypt.
it's a permissions issue in AWS
try
cd project
chmod 777 node_modules
npm install bcrypt -save
chmod go-w node_modules
or
cd proyect
echo "# Force npm to run node-gyp also as root, preventing errors in AWS with npm@5 or @6" >> .npmrc
echo "unsafe-perm=true" >> .npmrc
npm install
You can check the list of pre-built releases here: https://github.com/kelektiv/node.bcrypt.js/releases
One should match your OS and Node version.
As of today, on Windows, only 3.0.6 is pre-built for Node 12.x. That's not ideal but at least you can avoid downloading the MS dependencies by fixing the version in your package.json.
This is due to unstable version of Node version.
Make sure you follow the instructions here: https://github.com/kelektiv/node.bcrypt.js/wiki/Installation-Instructions#ubuntu-and-derivatives---elementary-linux-mint-etc
install package with root permission:
sudo npm install --unsafe-perm=true --allow-root
I was facing this issue because of my node js version 12.8.3. I just changed my node version to 12.4.1. And then try to install bcrypt using npm i bcrypt. Now its working fine for me.
Check/Download Different Node.js version from this Link
Try installing node-pre-gyp again then npm installing any missing modules.
This worked for me.
npm i node-pre-gyp
Most helpful comment
tried?
npm install --global --production windows-build-tools