Error: Could Not Locate the Bindings File. Tried: #56

Meteor run server getting error: Could not locate the bindings file. [...]bcrypt[...]

Okay I found the bug:
The problem was the definition of the envrionment varibale buildir in the Dockerfile:
ENV builddir /home/build
The build process for bcrypt seems to use the same variable, and builds the files bcrypt_lib.node and obj.target in that directory. So they were missing in the right place.

node.js in docker - Could not locate the bindings file .../bcrypt_lib.node

Root cause of the problem was using co-bcrypt. After removing it from the package.json and replacing all the require statements with bcryptjs, the error is gone.



Related Topics



Leave a reply



Submit