Be the first user to complete this post
|
Add to List |
Resolved - Error: Could not load the bindings file. Tried
I ran into this issue when running starting my nodejs app using pm2. For some reason, when my app kept on crashing. Upon checking my pm2 logs
, I saw the following error message.
Error: Could not locate the bindings file. Tried:
/opt/zem-web/node_modules/bcrypt/build/bcrypt_lib.node
/opt/zem-web/node_modules/bcrypt/build/Debug/bcrypt_lib.node
/opt/zem-web/node_modules/bcrypt/build/Release/bcrypt_lib.node
/opt/zem-web/node_modules/bcrypt/out/Debug/bcrypt_lib.node
/opt/zem-web/node_modules/bcrypt/Debug/bcrypt_lib.node
/opt/zem-web/node_modules/bcrypt/out/Release/bcrypt_lib.node
/opt/zem-web/node_modules/bcrypt/Release/bcrypt_lib.node
/opt/zem-web/node_modules/bcrypt/build/default/bcrypt_lib.node
The following two commands helped me resolve it on my Ubuntu setup
sudo npm install -g node-gyp
sudo node-gyp rebuild
Also Read:
- Error: can not find module 'underscore'
- Making max width work in internet explorer
- Resolved - Error: listen eaccess using nodejs and pm2
- Failed to lookup view index.js in directory - krakenjs
- Troubleshooting: Fatal error: watch ENOSPC on grunt watch