Node.bcrypt.js: [email protected] fails to install

Created on 9 Jul 2018  Â·  36Comments  Â·  Source: kelektiv/node.bcrypt.js

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\Users\Tyler\Documents\GitHub\tribot-stats\api> npm i

> [email protected] install C:\Users\Tyler\Documents\GitHub\tribot-stats\api\node_modules\bcrypt
> node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.0/bcrypt_lib-v3.0.0-node-v57-win32-x64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v57 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "C:\Users\Tyler\.windows-build-tools\python27\python.exe", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (C:\Users\Tyler\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack     at PythonFinder.<anonymous> (C:\Users\Tyler\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack     at C:\Users\Tyler\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Tyler\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\Tyler\\Documents\\GitHub\\tribot-stats\\api\\node_modules\\bcrypt\\lib\\binding\\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=C:\\Users\\Tyler\\Documents\\GitHub\\tribot-stats\\api\\node_modules\\bcrypt\\lib\\binding" "--napi_version=1" "--node_abi_napi=napi" "--python=C:\\Users\\Tyler\\.windows-build-tools\\python27\\python.exe" "--msvs_version=2015"
gyp ERR! cwd C:\Users\Tyler\Documents\GitHub\tribot-stats\api\node_modules\bcrypt
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v3.6.2
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:\Users\Tyler\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\Tyler\Documents\GitHub\tribot-stats\api\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\Tyler\Documents\GitHub\tribot-stats\api\node_modules\bcrypt\lib\binding --napi_version=1 --node_abi_napi=napi --python=C:\Users\Tyler\.windows-build-tools\python27\python.exe --msvs_version=2015' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\Tyler\Documents\GitHub\tribot-stats\api\node_modules\bcrypt\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:925:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
node-pre-gyp ERR! System Windows_NT 10.0.17134
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Tyler\\Documents\\GitHub\\tribot-stats\\api\\node_modules\\bcrypt\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\Tyler\Documents\GitHub\tribot-stats\api\node_modules\bcrypt
node-pre-gyp ERR! node -v v8.11.1
node-pre-gyp ERR! node-pre-gyp -v v0.10.2
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Tyler\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\Tyler\Documents\GitHub\tribot-stats\api\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\Tyler\Documents\GitHub\tribot-stats\api\node_modules\bcrypt\lib\binding --napi_version=1 --node_abi_napi=napi --python=C:\Users\Tyler\.windows-build-tools\python27\python.exe --msvs_version=2015' (1)
npm WARN [email protected] requires a peer of typescript@>=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of typescript@>=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >= 2.10.0-dev but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No repository field.

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\Tyler\AppData\Roaming\npm-cache\_logs\2018-07-09T16_01_22_764Z-debug.log
PS C:\Users\Tyler\Documents\GitHub\tribot-stats\api>

Most helpful comment

If you are using ubuntu, make sure you have the following packages installed:
apt-get install -y build-essential

or CentOS:
yum install gcc-c++ make

another....
https://nodejs.org/en/download/package-manager/

All 36 comments

Reverting to ^2.0.1 for now.

Related https://github.com/kelektiv/node.bcrypt.js/issues/590

Pre-built windows binaries are now available, you may try with 3.0.0.

Unfortunately, without pre-built binaries using a bcrypt in windows is a lot of pain

Still no dice @agathver

C:\Users\Tyler\Documents\GitHub\tribot-stats\api> npm i

> [email protected] install C:\Users\Tyler\Documents\GitHub\tribot-stats\api\node_modules\bcrypt
> node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.0/bcrypt_lib-v3.0.0-node-v57-win32-x64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v57 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "C:\Users\Tyler\.windows-build-tools\python27\python.exe", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (C:\Users\Tyler\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack     at PythonFinder.<anonymous> (C:\Users\Tyler\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack     at C:\Users\Tyler\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Tyler\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\Tyler\\Documents\\GitHub\\tribot-stats\\api\\node_modules\\bcrypt\\lib\\binding\\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=C:\\Users\\Tyler\\Documents\\GitHub\\tribot-stats\\api\\node_modules\\bcrypt\\lib\\binding" "--napi_version=1" "--node_abi_napi=napi" "--python=C:\\Users\\Tyler\\.windows-build-tools\\python27\\python.exe" "--msvs_version=2015"
gyp ERR! cwd C:\Users\Tyler\Documents\GitHub\tribot-stats\api\node_modules\bcrypt
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v3.6.2
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:\Users\Tyler\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\Tyler\Documents\GitHub\tribot-stats\api\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\Tyler\Documents\GitHub\tribot-stats\api\node_modules\bcrypt\lib\binding --napi_version=1 --node_abi_napi=napi --python=C:\Users\Tyler\.windows-build-tools\python27\python.exe --msvs_version=2015' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\Tyler\Documents\GitHub\tribot-stats\api\node_modules\bcrypt\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:925:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
node-pre-gyp ERR! System Windows_NT 10.0.17134
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Tyler\\Documents\\GitHub\\tribot-stats\\api\\node_modules\\bcrypt\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\Tyler\Documents\GitHub\tribot-stats\api\node_modules\bcrypt
node-pre-gyp ERR! node -v v8.11.1
node-pre-gyp ERR! node-pre-gyp -v v0.10.2
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Tyler\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\Tyler\Documents\GitHub\tribot-stats\api\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\Tyler\Documents\GitHub\tribot-stats\api\node_modules\bcrypt\lib\binding --napi_version=1 --node_abi_napi=napi --python=C:\Users\Tyler\.windows-build-tools\python27\python.exe --msvs_version=2015' (1)
npm WARN [email protected] requires a peer of typescript@>=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of typescript@>=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >= 2.10.0-dev but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No repository field.

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\Tyler\AppData\Roaming\npm-cache\_logs\2018-07-11T03_12_12_663Z-debug.log
PS C:\Users\Tyler\Documents\GitHub\tribot-stats\api>

Same problem here

Same problem here, installing on linux

@Barterr uploading linux binaries will take a while on my part

I do have similar errors:

node-pre-gyp http GET https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.0/bcrypt_lib-v3.0.0-node-v64-darwin-x64-unknown.tar.gz
node-pre-gyp http 404 https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.0/bcrypt_lib-v3.0.0-node-v64-darwin-x64-unknown.tar.gz
node-pre-gyp WARN Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.0/bcrypt_lib-v3.0.0-node-v64-darwin-x64-unknown.tar.gz 

It seems there's no releases in this repository??

Updated on 2018-07-14:
re-install all packages, and using npm instead of yarn make it work.

npm ERR! code ELIFECYCLE
npm ERR! errno 6
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 6
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.

centOS7.4

@Kylin93CN You have some network errors. v2.0.1 has pre-built binaries

Reverted to v2.0.1 for now. It would be good to get this issue solved as it's been around for a while now and bcrypt is widely used.

linux-arm packages are missing as well...
ERR! Tried to download(undefined): https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.3/bcrypt_lib-v1.0.3-node-v57-linux-arm.tar.gz

This worked for me...
1) Make sure all nodejs programs are CLOSED
2) Open console in administrator mode
3) Install Yarn
4) yarn add [email protected]

If you are using ubuntu, make sure you have the following packages installed:
apt-get install -y build-essential

or CentOS:
yum install gcc-c++ make

another....
https://nodejs.org/en/download/package-manager/

@MinWoo-Lee thanks! build-essential package is needed for building from binares

I have node installed by nvm. I do not know if it change something.

I installed node-pre-gyp by npm

npm i -g node-pre-gyp

And now I have error only in first installation. If node_modules does not exists. I mean

daniel@daniel-Inspiron-3543:~/pro/health_diary$ npm i

> [email protected] install /home/daniel/pro/health_diary/node_modules/bcrypt
> node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.0/bcrypt_lib-v3.0.0-node-v57-linux-x64-glibc.tar.gz 
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v57 ABI, glibc) (falling back to source compile with node-gyp) 
make: Entering directory '/home/daniel/pro/health_diary/node_modules/bcrypt/build'
  CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
../src/bcrypt.cc: In function ‘void encode_salt(char*, u_int8_t*, char, u_int16_t, u_int8_t)’:
../src/bcrypt.cc:114:1: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=]
 encode_salt(char *salt, u_int8_t *csalt, char minor, u_int16_t clen, u_int8_t logr)
 ^~~~~~~~~~~
In file included from /usr/include/stdio.h:862:0,
                 from ../src/bcrypt.cc:34:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:65:44: note: ‘__builtin___snprintf_chk’ output between 4 and 5 bytes into a destination of size 4
        __bos (__s), __fmt, __va_arg_pack ());
                                            ^
../src/bcrypt.cc: In function ‘void bcrypt(const char*, const char*, char*)’:
../src/bcrypt.cc:147:1: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=]
 bcrypt(const char *key, const char *salt, char *encrypted)
 ^~~~~~
In file included from /usr/include/stdio.h:862:0,
                 from ../src/bcrypt.cc:34:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:65:44: note: ‘__builtin___snprintf_chk’ output between 4 and 5 bytes into a destination of size 4
        __bos (__s), __fmt, __va_arg_pack ());
                                            ^
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
  SOLINK_MODULE(target) Release/obj.target/bcrypt_lib.node
  COPY Release/bcrypt_lib.node
  COPY /home/daniel/pro/health_diary/node_modules/bcrypt/lib/binding/bcrypt_lib.node
  TOUCH Release/obj.target/action_after_build.stamp
make: Leaving directory '/home/daniel/pro/health_diary/node_modules/bcrypt/build'
added 304 packages from 287 contributors and audited 955 packages in 11.774s
found 0 vulnerabilities

daniel@daniel-Inspiron-3543:~/pro/health_diary$ npm i
audited 955 packages in 3.952s
found 0 vulnerabilities

So after first installation everything is ok. I have build essentials, g++, make, python, but I do not have node installed in by apt-get but by nvm.

@MinWoo-Lee thank, it worked!

@OlliWerPXC ARM binaries are not available (and will not be available for foreseeable future) due to lack of CI infrastructure to compile and test them.

Pre-built binaries are now available for all supported platforms

Same problem here!

Reverted to v2.0.1 for now. It would be good to get this issue solved as it's been around for a while now and bcrypt is widely used.

Thanks it's install

Reverted to v2.0.1 for now. It would be good to get this issue solved as it's been around for a while now and bcrypt is widely used.

only this worked for me..

Hey I think I ran into the same issue recently. If i understand the question you get that error when you try to run
npm install bcrypt
Well for me i tried npm install bcryptjs and it worked fine

npm install --save bcryptjs && npm uninstall --save bcrypt
:D

npm install --save bcryptjs && npm uninstall --save bcrypt
:D

Hi, can u please tell, whats the difference between bcrypt and bcryptjs.

i think js one is for windows devices and none js one works on Linux , but im nor sure if the story is true

@ihteshamqazi AFAIK:

bcrypt: is implemented in C++. Version 3+ doesn't provide a pre-compiled version of it and therefore you need to have build tools installed to compile it. Although you don't need them for deployment, you must ensure binary compatibility with your platform.

bcryptjs: is a plain js implementation and therefore you don't need anything. But it's around 30% slower, as stated in docs.

It's up to you to use one of them. I use this one, because performance and security matters in this case.

"Make sure you have the appropriate dependencies installed and configured for your platform. You can find installation instructions for the dependencies for some common platforms on this page this page". Also see this solution

Had the same problem installing bcrypt on linux mint for a MeteorJS project.
Just by stoppping the running meteor apps I had (MeteorJS uses Nodejs on the backend), I could install bcrypt correctly.

npm i node -g
or
npm i node-linux-x64 -g
workerd for me,

Hi,
we had the same problem on aws elastic beanstalk.
Adding a .npmrc file on the top of your project with
unsafe-perm=true

solved it.

Reverted to v2.0.1 for now. It would be good to get this issue solved as it's been around for a while now and bcrypt is widely used.

This worked for me. Thanks!

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.7/bcrypt_lib-v3.0.7-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)
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Python\Python38-32python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "", 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:970:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=D:\VCN\port_server\node_modules\bcrypt\lib\binding\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=D:\VCN\port_server\node_modules\bcrypt\lib\binding" "--napi_version=3" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64"
gyp ERR! cwd D:\VCN\port_servernode_modulesbcrypt
gyp ERR! node -v v10.15.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Filesnodejsnode.exe C:\Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js configure --fallback-to-build --module=D:\VCN\port_servernode_modulesbcrypt\libbindingbcrypt_lib.node --module_name=bcrypt_lib --module_path=D:\VCN\port_servernode_modulesbcrypt\libbinding --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
node-pre-gyp ERR! stack at ChildProcess. (D:\VCN\port_servernode_modulesnode-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:189:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:970:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Windows_NT 10.0.17763
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "D:\VCN\port_server\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd D:\VCN\port_servernode_modulesbcrypt
node-pre-gyp ERR! node -v v10.15.1
node-pre-gyp ERR! node-pre-gyp -v v0.13.0
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Filesnodejsnode.exe C:\Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js configure --fallback-to-build --module=D:\VCN\port_servernode_modulesbcrypt\libbindingbcrypt_lib.node --module_name=bcrypt_lib --module_path=D:\VCN\port_servernode_modulesbcrypt\libbinding --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
npm WARN [email protected] No description

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\SkilL\AppData\Roamingnpm-cache_logs\2019-11-27T04_27_29_861Z-debug.log

Python 3 is not supported and python 2 is about to deprecate. How will we setup with this thing? :/ Should have been a version python 3 available from the beginning...

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.7/bcrypt_lib-v3.0.7-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)
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
MSBUILD : error MSB4132: The tools version "2.0" is unrecognized. Available tools versions are "4.0".
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Filesnodejsnode_modulesnpmnode_modulesnode-gyp\libbuild.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:189:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "build" "--fallback-to-build" "--module=D:\VCN\port_server\node_modules\bcrypt\lib\binding\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=D:\VCN\port_server\node_modules\bcrypt\lib\binding" "--napi_version=3" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64"
gyp ERR! cwd D:\VCN\port_servernode_modulesbcrypt
gyp ERR! node -v v10.15.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Filesnodejsnode.exe C:\Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js build --fallback-to-build --module=D:\VCN\port_servernode_modulesbcrypt\libbindingbcrypt_lib.node --module_name=bcrypt_lib --module_path=D:\VCN\port_servernode_modulesbcrypt\libbinding --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
node-pre-gyp ERR! stack at ChildProcess. (D:\VCN\port_servernode_modulesnode-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:189:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:970:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Windows_NT 10.0.17763
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "D:\VCN\port_server\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd D:\VCN\port_servernode_modulesbcrypt
node-pre-gyp ERR! node -v v10.15.1
node-pre-gyp ERR! node-pre-gyp -v v0.13.0
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Filesnodejsnode.exe C:\Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js build --fallback-to-build --module=D:\VCN\port_servernode_modulesbcrypt\libbindingbcrypt_lib.node --module_name=bcrypt_lib --module_path=D:\VCN\port_servernode_modulesbcrypt\libbinding --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
npm WARN [email protected] No description

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\SkilL\AppData\Roamingnpm-cache_logs\2019-11-27T04_37_12_792Z-debug.log

After installing python 2.7 :/ Why isn't all the necessary stuff is provided or listed to be downloaded to use this goddamn library? That's just too many dependencies out of the nodejs environment which is supported to be noted or informed.

npm install [email protected]

npm install --save [email protected] --nodedir

npm install --save bcryptjs && npm uninstall --save bcrypt
:D

Hi, can u please tell, whats the difference between bcrypt and bcryptjs.

i think bcrypt written on c++, bcryptks in pure js, it cmust cause in workspeed and some extra params

Was this page helpful?
0 / 5 - 0 ratings