nodester/nodester — Issue #264: Cannot find module './build/Release/bcrypt_lib', install mongoose-auth failed
Author: rogerz
Created: 2012-01-07 03:36:06+00:00
State: open

I'm trying to install mongoose-auth with `nodester install mongoose-auth` when the app fails to start.

And I got the following error in logs

Error: Cannot find module './build/Release/bcrypt_lib'
at Function._resolveFilename (module.js:317:11)
at Function._load (module.js:262:25)
at require (module.js:346:19)
at Object. (/node_modules/mongoose-auth/node_modules/bcrypt/bcrypt.js:5:18)
at Module._compile (module.js:402:26)
at Object..js (module.js:408:10)
at Module.load (module.js:334:31)
at Function._load (module.js:293:12)
at require (module.js:346:19)
at Object. (/node_modules/mongoose-auth/lib/modules/password/plugin.js:26:14)

Error: Restarted too many times, bailing.

While the installation log shows everything is OK

rogerz@colinux:cc (master)$ nodester npm install mongoose-auth
The "sys" module is now called "util". It should have a similar interface.
nodester info installing to app: cc
nodester info installing these npm packages: mongoose-auth
nodester > bcrypt@0.4.1 install /node/app/rogerz/4950-1b46e30a23a36bbb9d4e5a224ea670cd_rw/node_modules/mongoose-auth/node_modules/bcrypt
nodester > make build
nodester rm -f bcrypt_lib.node
nodester rm -Rf build
nodester node-waf configure
nodester node-waf build
nodester mongoose-auth@0.0.11 ./node_modules/mongoose-auth
nodester ├── mongoose-types@1.0.3
nodester ├── everyauth@0.2.28 (request@2.9.3 openid@0.3.2 oauth@0.9.5 restler@0.2.4 connect@1.8.5 xml2js@0.1.13)
nodester └── bcrypt@0.4.1
nodester Checking for program g++ or c++ : /usr/bin/g++
nodester Checking for program cpp : /usr/bin/cpp
nodester Checking for program ar : /usr/bin/ar
nodester Checking for program ranlib : /usr/bin/ranlib
nodester Checking for g++ : ok
nodester Checking for program gcc or cc : /usr/bin/gcc
nodester Checking for gcc : ok
nodester Checking for node path : not found
nodester Checking for node prefix : ok /usr
nodester Checking for function RAND_bytes : yes
nodester 'configure' finished successfully (0.337s)
nodester Waf: Entering directory `/node/app/rogerz/4950-1b46e30a23a36bbb9d4e5a224ea670cd_rw/node_modules/mongoose-auth/node_modules/bcrypt/build'
nodester [1/4] cxx: src/blowfish.cc -> build/default/src/blowfish_1.o
nodester [2/4] cxx: src/bcrypt.cc -> build/default/src/bcrypt_1.o
nodester [3/4] cxx: src/bcrypt_node.cc -> build/default/src/bcrypt_node_1.o
nodester [4/4] cxx_link: build/default/src/blowfish_1.o build/default/src/bcrypt_1.o build/default/src/bcrypt_node_1.o -> build/default/bcrypt_lib.node
nodester Waf: Leaving directory `/node/app/rogerz/4950-1b46e30a23a36bbb9d4e5a224ea670cd_rw/node_modules/mongoose-auth/node_modules/bcrypt/build'
nodester 'build' finished successfully (1.682s)