Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Could not locate the bindings file. Tried: #21

Open
baslr opened this issue Dec 2, 2015 · 2 comments
Open

Error: Could not locate the bindings file. Tried: #21

baslr opened this issue Dec 2, 2015 · 2 comments

Comments

@baslr
Copy link

baslr commented Dec 2, 2015

bindings can't find the bin, but its there.
node v4-2-2, bcrypt v0.8.5

app-0 (err): Error: Could not locate the bindings file. Tried:
app-0 (err):  → /backend/node_modules/bcrypt/build/bcrypt_lib.node
app-0 (err):  → /backend/node_modules/bcrypt/build/Debug/bcrypt_lib.node
app-0 (err):  → /backend/node_modules/bcrypt/build/Release/bcrypt_lib.node
app-0 (err):  → /backend/node_modules/bcrypt/out/Debug/bcrypt_lib.node
app-0 (err):  → /backend/node_modules/bcrypt/Debug/bcrypt_lib.node
app-0 (err):  → /backend/node_modules/bcrypt/out/Release/bcrypt_lib.node
app-0 (err):  → /backend/node_modules/bcrypt/Release/bcrypt_lib.node
app-0 (err):  → /backend/node_modules/bcrypt/build/default/bcrypt_lib.node
app-0 (err):  → /backend/node_modules/bcrypt/compiled/4.2.2/linux/x64/bcrypt_lib.node
app-0 (err):     at bindings (/backend/node_modules/bindings/bindings.js:88:9)
app-0 (err):     at Object.<anonymous> (/backend/node_modules/bcrypt/bcrypt.js:3:35)
app-0 (err):     at Module._compile (module.js:435:26)
app-0 (err):     at Object.Module._extensions..js (module.js:442:10)
app-0 (err):     at Module.load (module.js:356:32)
app-0 (err):     at Function.Module._load (module.js:311:12)
app-0 (err):     at Function._load (/usr/lib/node_modules/pm2/node_modules/pmx/lib/transaction.js:62:21)
app-0 (err):     at Module.require (module.js:366:17)
app-0 (err):     at require (module.js:385:17)
app-0 (err):     at Object.<anonymous> (/backend/lib/authentication.js:21:14)

$ ls -l node_modules/bcrypt/build/Release/bcrypt_lib.node
-rwxr-xr-x 1 vagrant vagrant 63653 Dec  2 12:58 node_modules/bcrypt/build/Release/bcrypt_lib.node
@Bahar1978
Copy link

How to fix it?

@cztomsik
Copy link

cztomsik commented Dec 7, 2018

This is also shown if there was any runtime error during module load (and such error is silently ignored which is bad IMHO)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants