can't install bcrypt.js
my nodejs version is 12.13.1
C:\Users\시경\Documents\GitHub\WebProject>npm i bcrypt
[email protected] install C:\Users\시경\Documents\GitHub\WebProject\node_modules\bcrypt node-pre-gyp install --fallback-to-build
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/v
3.0.7/bcrypt_lib-v3.0.7-node-v72-win32-x64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v72 ABI, unknown)
(falling back to source compile with node-gyp)
Traceback (most recent call last):
File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py", line 50, in gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-
gyp\lib\configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess.handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\no
de_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\시경\Doc
uments\GitHub\WebProject\node_modules\bcrypt\lib\binding\bcrypt_lib.node" "--module_name=bcrypt_l
ib" "--module_path=C:\Users\시경\Documents\GitHub\WebProject\node_modules\bcrypt\lib\binding" "
--napi_version=5" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v72" "--python
=C:\Users\시경\.windows-build-tools\python27\python.exe"
gyp ERR! cwd C:\Users\시경\Documents\GitHub\WebProject\node_modules\bcrypt
gyp ERR! node -v v12.13.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\node
js\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\User
s\시경\Documents\GitHub\WebProject\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt
lib --module_path=C:\Users\시경\Documents\GitHub\WebProject\node_modules\bcrypt\lib\binding --napi_versi
on=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72 --python=C:\Users\시경.wind
ows-build-tools\python27\python.exe' (1)
node-pre-gyp ERR! stack at ChildProcess.
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.
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! C:\Users\시경\AppData\Roaming\npm-cache_logs\2019-11-20T06_33_00_278Z-debug.log
how can i do??
same here
You might be missing some dependencies. Try this.
@MatthewRandle it works, thank you
@MatthewRandle thanks brow, works for me!
@MatthewRandle works for me too. Thanks
@MatthewRandle It works
can't install even 3.0.6 version and updating windows tools not helping...
@MatthewRandle thanks bro, its work for me to
good day and Merry Christmas, I guess you can close this? kindly
npm install --global --production windows-build-tools
Font : https://github.com/kelektiv/node.bcrypt.js/wiki/Installation-Instructions
@MatthewRandle not work @3.0.6. help me
@MatthewRandle thanks bro, its work for me
Thanks, bro, it now works
try with this version ...its working
npm i [email protected]
@MatthewRandle thanks so much, it works for me (Windows 10, node 10.16.3, npm 6.9.0)
@MatthewRandle not work @3.0.6. help me
Your node_modules folder is corrupt. To resolve this, follow the steps below
- Delete your package-lock.json file
- run
rm -rf node_modulesto remove your node modules folder - run
npm installto reinstall other dependencies - run
npm i [email protected]to install bcrypt
@MatthewRandle it worked for me. Thanks a ton man!! i was stuck on this problem from past two days.
Please try this it will definitely work, this error occurs because you are not using a stable version of node
npm install --save bcryptjs && npm uninstall --save bcrypt
Try installing the prior version, worked for me:
npm i [email protected]
Thanks!! Its works. The problem are the version.