Be the first user to complete this post

  • 0
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:
The following two commands helped me resolve it on my Ubuntu setup
sudo npm install -g node-gyp
sudo node-gyp rebuild

Also Read:

  1. Failed to lookup view index.js in directory - krakenjs
  2. Resolved - /usr/bin/env: node: No such file or directory
  3. Troubleshooting: Fatal error: watch ENOSPC on grunt watch
  4. css: margin does not work