node.bcrypt.js icon indicating copy to clipboard operation
node.bcrypt.js copied to clipboard

node-gyp error in bcrypt package

Open maxwellium opened this issue 13 years ago • 5 comments

on the new 0.10.0 version of node, i get the following errors when running npm update (package.json specifying for bcrypt "latest")

> [email protected] install /Users/maxwellium/source/nodeminandum/node_modules/bcrypt
> node-gyp rebuild

gyp http GET http://nodejs.org/dist/v0.10.0/node-v0.10.0.tar.gz
gyp http 200 http://nodejs.org/dist/v0.10.0/node-v0.10.0.tar.gz
  CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
In file included from ../src/bcrypt_node.cc:31:
/Users/maxwellium/.node-gyp/0.10.0/src/node.h:61:10: fatal error: 'uv.h' file not found
#include "uv.h"
         ^
1 error generated.
make: *** [Release/obj.target/bcrypt_lib/src/bcrypt_node.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/Cellar/node/0.10.0/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 Darwin 12.2.1
gyp ERR! command "node" "/usr/local/Cellar/node/0.10.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/maxwellium/source/nodeminandum/node_modules/bcrypt
gyp ERR! node -v v0.10.0
gyp ERR! node-gyp -v v0.8.5
gyp ERR! not ok 
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR! 
npm ERR! Failed at the [email protected] 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.

maxwellium avatar Mar 12 '13 16:03 maxwellium

Looks to me like your install did not download the right files to build code. I ran the install on v0.10 and it works as expected.

defunctzombie avatar Mar 12 '13 16:03 defunctzombie

will check again when im on test machine, was working on mac os x 10.8, installed node via homebrew. maybe its gyp/mac specific, will look there and post back.

maxwellium avatar Mar 12 '13 16:03 maxwellium

For reference, I tried it on my mac 10.8

On Tue, Mar 12, 2013 at 12:56 PM, maxwellium [email protected]:

will check again when im on test machine, was working on mac os x 10.8, installed node via homebrew. maybe its gyp/mac specific, will look there and post back.

— Reply to this email directly or view it on GitHubhttps://github.com/ncb000gt/node.bcrypt.js/issues/147#issuecomment-14787804 .

defunctzombie avatar Mar 12 '13 17:03 defunctzombie

checked, wasn't bcrypt error. for anyone else, having this problem

rm -rf ~/.node-gyp/

fixed it.

maxwellium avatar Mar 12 '13 18:03 maxwellium

Yeah, sorry about that. Had 0.7.3 specified in my package.json. Rookie mistake.

Mark.

On Friday, 5 April 2013 at 1:35 AM, Roman Shtylman wrote:

Use the latest version of bcrypt.

On Thu, Apr 4, 2013 at 6:28 AM, Mark <[email protected] (mailto:[email protected])> wrote:

I've just run into this problem on node 10.3, node-gyp 0.9.5 and bcrypt
0.7.3.

CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
../src/bcrypt_node.cc:257 (http://bcrypt_node.cc:257):5: error: no matching function for call to 'uv_queue_work'
uv_queue_work(uv_default_loop(), req, GenSaltAsync, GenSaltAsyncAfter);
^~~~~~~~~~~~~
/Users/mark/.node-gyp/0.10.3/deps/uv/include/uv.h:1411:15: note: candidate function not viable: no known conversion from 'void (uv_work_t )' to
'uv_after_work_cb' (aka 'void (
)(uv_work_t , int)') for 4th argument
UV_EXTERN int uv_queue_work(uv_loop_t
loop, uv_work_t* req,
^
../src/bcrypt_node.cc:337 (http://bcrypt_node.cc:337):5: error: no matching function for call to 'uv_queue_work'
uv_queue_work(uv_default_loop(), req, EncryptAsync, EncryptAsyncAfter);
^~~~~~~~~~~~~
/Users/mark/.node-gyp/0.10.3/deps/uv/include/uv.h:1411:15: note: candidate function not viable: no known conversion from 'void (uv_work_t )' to
'uv_after_work_cb' (aka 'void (
)(uv_work_t , int)') for 4th argument
UV_EXTERN int uv_queue_work(uv_loop_t
loop, uv_work_t* req,
^
../src/bcrypt_node.cc:431 (http://bcrypt_node.cc:431):5: error: no matching function for call to 'uv_queue_work'
uv_queue_work(uv_default_loop(), req, CompareAsync, CompareAsyncAfter);
^~~~~~~~~~~~~
/Users/mark/.node-gyp/0.10.3/deps/uv/include/uv.h:1411:15: note: candidate function not viable: no known conversion from 'void (uv_work_t )' to
'uv_after_work_cb' (aka 'void (
)(uv_work_t , int)') for 4th argument
UV_EXTERN int uv_queue_work(uv_loop_t
loop, uv_work_t* req,
^
3 errors generated.
make: *** [Release/obj.target/bcrypt_lib/src/bcrypt_node.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/Cellar/node/0.10.3/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:786:12)
gyp ERR! System Darwin 12.3.0
gyp ERR! command "node" "/usr/local/Cellar/node/0.10.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/mark/webapps/traphoot/node_modules/bcrypt
gyp ERR! node -v v0.10.3
gyp ERR! node-gyp -v v0.9.5
gyp ERR! not ok
npm ERR! [email protected] (mailto:[email protected]) install: node-gyp rebuild
npm ERR! sh "-c" "node-gyp rebuild" failed with 1
npm ERR!
npm ERR! Failed at the [email protected] (mailto:[email protected]) 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.

—
Reply to this email directly or view it on GitHubhttps://github.com/ncb000gt/node.bcrypt.js/issues/147#issuecomment-15889939
.

— Reply to this email directly or view it on GitHub (https://github.com/ncb000gt/node.bcrypt.js/issues/147#issuecomment-15900834).

markreid avatar Apr 04 '13 23:04 markreid