Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

bcrypt package error in Node 0.10.1 #156

Closed
jpitz opened this Issue · 18 comments

6 participants

@jpitz

Hey,

I'm trying to install bcrypt and I get this error. Let me know how to proceed

413 error bcrypt@0.7.5 install: `node-gyp rebuild`
413 error `cmd "/c" "node-gyp rebuild"` failed with 1
414 error Failed at the bcrypt@0.7.5 install script.
414 error This is most likely a problem with the bcrypt package,
414 error not with npm itself.
414 error Tell the author that this fails on your system:
414 error     node-gyp rebuild
414 error You can get their info via:
414 error     npm owner ls bcrypt
414 error There is likely additional logging output above.
415 error System Windows_NT 6.2.9200
@ncb000gt
Owner

I need more information to be able to help.

Paste the output of npm install --verbose 2>&1 | grep gyp please.

@jpitz

No grep, I'm using windows. See the last line. I do have an npm log file though.

@jpitz

I get the same issue on a linux environment and this is what I get.

> node-gyp rebuild                                                                                                                                                                                                                                                             
gyp info it worked if it ends with ok                                                                                                                                                                                                                                          
gyp verb cli [ 'node',                                                                                                                                                                                                                                                         
gyp verb cli   '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js',                                                                                                                                                                                              
gyp verb cli   'rebuild' ]                                                                                                                                                                                                                                                     
gyp info using node-gyp@0.8.5                                                                                                                                                                                                                                                  
gyp info using node@0.10.0 | linux | x64                                                                                                                                                                                                                                       
gyp verb command rebuild []                                                                                                                                                                                                                                                    
gyp verb command clean []                                                                                                                                                                                                                                                      
gyp verb clean removing "build" directory                                                                                                                                                                                                                                      
gyp verb command configure []                                                                                                                                                                                                                                                  
gyp verb check python checking for Python executable "python" in the PATH                                                                                                                                                                                                      
gyp verb `which` succeeded for `%s` python /usr/bin/python                                                                                                                                                                                                                     
gyp verb check python version `python -c "import platform; print(platform.python_version());"` returned: "2.7.3\n"                                                                                                                                                             
gyp verb get node dir no --target version specified, falling back to host node version: v0.10.0                                                                                                                                                                                
gyp verb command install [ 'v0.10.0' ]                                                                                                                                                                                                                                         
gyp verb install input version string "v0.10.0"                                                                                                                                                                                                                                
gyp verb installing legacy version? false                                                                                                                                                                                                                                      
gyp verb install installing version: 0.10.0                                                                                                                                                                                                                                    
gyp verb install --ensure was passed, so won't reinstall if already installed                                                                                                                                                                                                  
gyp verb install version is already installed, need to check "installVersion"                                                                                                                                                                                                  
gyp verb got "installVersion" 9                                                                                                                                                                                                                                                
gyp verb needs "installVersion" 9                                                                                                                                                                                                                                              
gyp verb install version is good                                                                                                                                                                                                                                               
gyp verb get node dir target node version installed: 0.10.0                                                                                                                                                                                                                    
gyp verb build dir attempting to create "build" dir: /home/ubuntu/zulu/node_modules/bcrypt/build                                                                                                                                                                               
gyp verb build dir "build" dir needed to be created? /home/ubuntu/zulu/node_modules/bcrypt/build                                                                                                                                                                               
gyp verb build/config.gypi creating config file                                                                                                                                                                                                                                
gyp verb build/config.gypi writing out config file: /home/ubuntu/zulu/node_modules/bcrypt/build/config.gypi                                                                                                                                                                    
gyp verb config.gypi checking for gypi file: /home/ubuntu/zulu/node_modules/bcrypt/config.gypi                                                                                                                                                                                 
gyp verb common.gypi checking for gypi file: /home/ubuntu/zulu/node_modules/bcrypt/common.gypi                                                                                                                                                                                 
gyp verb gyp gyp format was not specified; forcing "make"                                                                                                                                                                                                                      
gyp info spawn python                                                                                                                                                                                                                                                          
gyp info spawn args [ '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp',                                                                                                                                                                                               
gyp info spawn args   'binding.gyp',                                                                                                                                                                                                                                           
gyp info spawn args   '-f',                                                                                                                                                                                                                                                    
gyp info spawn args   'make',                                                                                                                                                                                                                                                  
gyp info spawn args   '-I',                                                                                                                                                                                                                                                    
gyp info spawn args   '/home/ubuntu/zulu/node_modules/bcrypt/build/config.gypi',                                                                                                                                                                                               
gyp info spawn args   '-I',                                                                                                                                                                                                                                                    
gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',                                                                                                                                                                                            
gyp info spawn args   '-I',                                                                                                                                                                                                                                                    
gyp info spawn args   '/home/ubuntu/.node-gyp/0.10.0/common.gypi',                                                                                                                                                                                                             
gyp info spawn args   '-Dlibrary=shared_library',                                                                                                                                                                                                                              
gyp info spawn args   '-Dvisibility=default',                                                                                                                                                                                                                                  
gyp info spawn args   '-Dnode_root_dir=/home/ubuntu/.node-gyp/0.10.0',                                                                                                                                                                                                         
gyp info spawn args   '-Dmodule_root_dir=/home/ubuntu/zulu/node_modules/bcrypt',                                                                                                                                                                                               
gyp info spawn args   '--depth=.',                                                                                                                                                                                                                                             
gyp info spawn args   '--generator-output',                                                                                                                                                                                                                                    
gyp info spawn args   'build',                                                                                                                                                                                                                                                 
gyp info spawn args   '-Goutput_dir=.' ]                                                                                                                                                                                                                                       
gyp verb command build []                                                                                                                                                                                                                                                      
gyp verb build type Release                                                                                                                                                                                                                                                    
gyp verb architecture x64                                                                                                                                                                                                                                                      
gyp verb node dev dir /home/ubuntu/.node-gyp/0.10.0                                                                                                                                                                                                                            
gyp ERR! build error                                                                                                                                                                                                                                                           
gyp ERR! stack Error: not found: make                                                                                                                                                                                                                                          
gyp ERR! stack     at F (/usr/lib/node_modules/npm/node_modules/which/which.js:43:28)                                                                                                                                                                                          
gyp ERR! stack     at E (/usr/lib/node_modules/npm/node_modules/which/which.js:46:29)                                                                                                                                                                                          
gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/which/which.js:57:16                                                                                                                                                                                              
gyp ERR! stack     at Object.oncomplete (fs.js:93:15)                                                                                                                                                                                                                          
gyp ERR! System Linux 3.2.0-36-virtual                                                                                                                                                                                                                                         
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"                                                                                                                                                                            
gyp ERR! cwd /home/ubuntu/zulu/node_modules/bcrypt                                                                                                                                                                                                                             
gyp ERR! node -v v0.10.0                                                                                                                                                                                                                                                       
gyp ERR! node-gyp -v v0.8.5                                                                                                                                                                                                                                                    
gyp ERR! not ok                                                                                                                                                                                                                                                                
npm ERR! bcrypt@0.7.5 install: `node-gyp rebuild`                                                                                                                                                                                                                              
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1                                                                                                                                                                                                                            
npm ERR!     node-gyp rebuild
@ncb000gt
Owner

On your linux env you don't have make. You need to install that. You need to go through your npm log and make sure that as similar issue isn't there with windows. You need to have visual studios there to be able to build the app. If you're getting the same issue, that is probably your issue.

@jpitz

Doesn't seem to be the issue. I'm still getting an issue.

> node-gyp rebuild                                                                                                                                                                                                                                                             
gyp info it worked if it ends with ok                                                                                                                                                                                                                                          
gyp verb cli [ 'node',                                                                                                                                                                                                                                                         
gyp verb cli   '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js',                                                                                                                                                                                              
gyp verb cli   'rebuild' ]                                                                                                                                                                                                                                                     
gyp info using node-gyp@0.8.5                                                                                                                                                                                                                                                  
gyp info using node@0.10.0 | linux | x64                                                                                                                                                                                                                                       
gyp verb command rebuild []                                                                                                                                                                                                                                                    
gyp verb command clean []                                                                                                                                                                                                                                                      
gyp verb clean removing "build" directory                                                                                                                                                                                                                                      
gyp verb command configure []                                                                                                                                                                                                                                                  
gyp verb check python checking for Python executable "python" in the PATH                                                                                                                                                                                                      
gyp verb `which` succeeded for `%s` python /usr/bin/python                                                                                                                                                                                                                     
gyp verb check python version `python -c "import platform; print(platform.python_version());"` returned: "2.7.3\n"                                                                                                                                                             
gyp verb get node dir no --target version specified, falling back to host node version: v0.10.0                                                                                                                                                                                
gyp verb command install [ 'v0.10.0' ]                                                                                                                                                                                                                                         
gyp verb install input version string "v0.10.0"                                                                                                                                                                                                                                
gyp verb installing legacy version? false                                                                                                                                                                                                                                      
gyp verb install installing version: 0.10.0                                                                                                                                                                                                                                    
gyp verb install --ensure was passed, so won't reinstall if already installed                                                                                                                                                                                                  
gyp verb install version is already installed, need to check "installVersion"                                                                                                                                                                                                  
gyp verb got "installVersion" 9                                                                                                                                                                                                                                                
gyp verb needs "installVersion" 9                                                                                                                                                                                                                                              
gyp verb install version is good                                                                                                                                                                                                                                               
gyp verb get node dir target node version installed: 0.10.0                                                                                                                                                                                                                    
gyp verb build dir attempting to create "build" dir: /home/ubuntu/zulu/node_modules/bcrypt/build                                                                                                                                                                               
gyp verb build dir "build" dir needed to be created? /home/ubuntu/zulu/node_modules/bcrypt/build                                                                                                                                                                               
gyp verb build/config.gypi creating config file                                                                                                                                                                                                                                
gyp verb build/config.gypi writing out config file: /home/ubuntu/zulu/node_modules/bcrypt/build/config.gypi                                                                                                                                                                    
gyp verb config.gypi checking for gypi file: /home/ubuntu/zulu/node_modules/bcrypt/config.gypi                                                                                                                                                                                 
gyp verb common.gypi checking for gypi file: /home/ubuntu/zulu/node_modules/bcrypt/common.gypi                                                                                                                                                                                 
gyp verb gyp gyp format was not specified; forcing "make"                                                                                                                                                                                                                      
gyp info spawn python                                                                                                                                                                                                                                                          
gyp info spawn args [ '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp',                                                                                                                                                                                               
gyp info spawn args   'binding.gyp',                                                                                                                                                                                                                                           
gyp info spawn args   '-f',                                                                                                                                                                                                                                                    
gyp info spawn args   'make',                                                                                                                                                                                                                                                  
gyp info spawn args   '-I',                                                                                                                                                                                                                                                    
gyp info spawn args   '/home/ubuntu/zulu/node_modules/bcrypt/build/config.gypi',                                                                                                                                                                                               
gyp info spawn args   '-I',                                                                                                                                                                                                                                                    
gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',                                                                                                                                                                                            
gyp info spawn args   '-I',                                                                                                                                                                                                                                                    
gyp info spawn args   '/home/ubuntu/.node-gyp/0.10.0/common.gypi',                                                                                                                                                                                                             
gyp info spawn args   '-Dlibrary=shared_library',                                                                                                                                                                                                                              
gyp info spawn args   '-Dvisibility=default',                                                                                                                                                                                                                                  
gyp info spawn args   '-Dnode_root_dir=/home/ubuntu/.node-gyp/0.10.0',                                                                                                                                                                                                         
gyp info spawn args   '-Dmodule_root_dir=/home/ubuntu/zulu/node_modules/bcrypt',                                                                                                                                                                                               
gyp info spawn args   '--depth=.',                                                                                                                                                                                                                                             
gyp info spawn args   '--generator-output',                                                                                                                                                                                                                                    
gyp info spawn args   'build',                                                                                                                                                                                                                                                 
gyp info spawn args   '-Goutput_dir=.' ]                                                                                                                                                                                                                                       
gyp verb command build []                                                                                                                                                                                                                                                      
gyp verb build type Release                                                                                                                                                                                                                                                    
gyp verb architecture x64                                                                                                                                                                                                                                                      
gyp verb node dev dir /home/ubuntu/.node-gyp/0.10.0                                                                                                                                                                                                                            
gyp verb `which` succeeded for `make` /usr/bin/make                                                                                                                                                                                                                            
gyp info spawn make                                                                                                                                                                                                                                                            
gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]                                                                                                                                                                                                              
  g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/ubuntu/.node-gyp/0.10.0/src -I/home/ubuntu/.node-gyp/0.10.0/deps/uv/include -I/home/ubuntu/.node-gyp/0.10.0/deps/v8/include -I/home/ubuntu/.node-gyp/0.10.0/deps/openssl/openssl/include  -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-rtti -fno-exceptions -MMD -MF ./Release/.deps/Release/obj.target/bcrypt_lib/src/blowfish.o.d.raw  -c -o Release/obj.target/bcrypt_lib/src/blowfish.o ../src/blowfish.cc
gyp ERR! build error                                                                                                                                                                                                                                                           
gyp ERR! stack Error: `make` failed with exit code: 2                                                                                                                                                                                                                          
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:256:23)                                                                                                                                                                
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)                                                                                                                                                                                                         
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:754:12)                                                                                                                                                                                            
gyp ERR! System Linux 3.2.0-36-virtual                                                                                                                                                                                                                                         
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"                                                                                                                                                                            
gyp ERR! cwd /home/ubuntu/zulu/node_modules/bcrypt                                                                                                                                                                                                                             
gyp ERR! node -v v0.10.0                                                                                                                                                                                                                                                       
gyp ERR! node-gyp -v v0.8.5                                                                                                                                                                                                                                                    
gyp ERR! not ok                                                                                                                                                                                                                                                                
npm ERR! bcrypt@0.7.5 install: `node-gyp rebuild`                                                                                                                                                                                                                              
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1                                                                                                                                                                                                                            
npm ERR!     node-gyp rebuild                                                                                                                                                                                                                                                  
@jpitz

The primary problem arises when the node-gyp rebuild command is executed.

@ncb000gt
Owner

Try updating your version of node-gyp. I just ran the rebuild command and it worked.

In terms of your windows environment, have you tried installing MSVS?

@jpitz

I have MSVS 2012. I updated node-gyp and it made a little more progress, but still fails on the same command.

@ncb000gt
Owner

Can you pull the project source down locally and try building it yourself using make? Thanks.

@TooTallNate
Collaborator

He probably doesn't have make (on Windows). Just pull the source code and run npm install. That will compile and install everything, otherwise post the entire output from your terminal here please.

@TooTallNate
Collaborator

@Molitov As for your linux environment, make sure your compiler is properly working. The g++ command seems to be returning an error.

@ncb000gt
Owner

@TooTallNate yea. We were talking about linux earlier up, however there were issues earlier with Windows.

@TooTallNate
Collaborator

@ncb000gt Ya noticed that after the fact :) Whoops.

@ncb000gt
Owner

@Molitov any update on this?

@jpitz

It works when I roll back to a the version prior. Its definitely an issue with the rebuild instance. I've installed other packages that rebuild fine, but I think that there is an issue in your dependency tree because I also get PYTHON not found in path errors. I am proceeding using an older instance of bcrypt. I would like to use the most recent version though.

@defunctzombie
Collaborator

This sounds like environment errors to me versus a specific issue or action we need to take with this package. I am closing since it doesn't seem like something this module will have to fix.

@carbontax

I was having the same problem on ubuntu. Output of uname for more specificity. node v. 0.10.3

3.5.0-27-generic #46~precise1-Ubuntu SMP ... x86_64

I can confirm that the problem was not fixed by

npm -g install node-gyp

but WAS fixed by doing ...

sudo apt-get install g++

@nidhishukla

I get the same error..

bcrypt@0.7.5 install C:\Users\nidhish\Documents\GitHub\KinoCards\node_modules\
bcrypt
node-gyp rebuild

C:\Users\nidhish\Documents\GitHub\KinoCards\node_modules\bcrypt>node "C:\Program
Files\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin
\node-gyp.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: spawn ENOENT
gyp ERR! stack at errnoException (child_process.js:977:11)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:768:
34)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\nidhish\Documents\GitHub\KinoCards\node_modules\bcrypt
gyp ERR! node -v v0.10.3
gyp ERR! node-gyp -v v0.9.5
gyp ERR! not ok
npm ERR! bcrypt@0.7.5 install: node-gyp rebuild
npm ERR! cmd "/c" "node-gyp rebuild" failed with 1
npm ERR!
npm ERR! Failed at the bcrypt@0.7.5 install script.
npm ERR! This is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nod
ejs\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! cwd C:\Users\nidhish\Documents\GitHub\KinoCards
npm ERR! node -v v0.10.3
npm ERR! npm -v 1.2.17
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\nidhish\Documents\GitHub\KinoCards\npm-debug.log
npm ERR! not ok code 0

@ncb000gt
Owner

I'm not convinced this is the same error. It looks like there is a configuration error up at the top of your output but without more info I can't really make a proper assessment. What happens if you pull the source and run node-gyp configure yourself?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.