Node.bcrypt.js: bcrypt - node_modules/bcrypt/node_modules/bindings/bindings.js:83 not working

Created on 3 Sep 2015  路  4Comments  路  Source: kelektiv/node.bcrypt.js

sails lift - notworking i have trouble here with my bcrypt file ? are you have a slove for this issue? Would like to starting my App here on localhost. but i get this out.. but i have githubed alot but dont found a slove to fix this issue. Thanks alot.



Space-Odysseys-Mac-Pro:www cyberspace$ sails lift

info: Starting app...

/Users/cyberspace/Desktop/www/node_modules/bcrypt/node_modules/bindings/bindings.js:83
throw e
^
Error: dlopen(/Users/cyberspace/Desktop/www/node_modules/bcrypt/build/Release/bcrypt_lib.node, 1): no suitable image found. Did find:
/Users/cyberspace/Desktop/www/node_modules/bcrypt/build/Release/bcrypt_lib.node: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x03
at Error (native)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at bindings (/Users/cyberspace/Desktop/www/node_modules/bcrypt/node_modules/bindings/bindings.js:76:44)
at Object. (/Users/cyberspace/Desktop/www/node_modules/bcrypt/bcrypt.js:3:35)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/Users/cyberspace/Desktop/www/config/passport.js:5:10)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
Space-Odysseys-Mac-Pro:www cyberspace$

Most helpful comment

I would recommend removing node_modules and installing again. Make sure you don't change node versions between installs.

All 4 comments

I don't understand the issue here. Also, maybe best to ask sails project for help first. This project just deals with issues around bcrypt module and not issues around other projects using that module. If I had to guess here I would say there was an installation or build issue when sails first installed or initialized the project.

Hey Zombie! yes it was the commandline npm install bcrypt ! ;)

I would recommend removing node_modules and installing again. Make sure you don't change node versions between installs.

i have done this all. specially the bcrypt files. ! Thanks Alot.

Was this page helpful?
0 / 5 - 0 ratings