-
Notifications
You must be signed in to change notification settings - Fork 97
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 #170
Comments
|
$ find . -name node_expat.node |
looks alright? |
I am also seeing this error when uploading to Heroku. Would be interested to know how to fix instead of trying a new library |
I am also facing this issue on Lambda |
And on Travis CI... |
To fix this, I went into the node-expat folder in my node_modules folder, then I ran a node-gyp rebuild there. At first it complained about my npm_config_node_gyp variable, which was pointing at the node-gyp package folder itself, so I amended it to point at the bin\node-gyp.js file itself. Like this: |
For anyone from Google that come across this issue and is using Webpack: I encountered this error when trying to deploy some code using the Serverless framework to a Lambda on AWS; the error was being thrown when Webpack was attempting to bundle everything. I discovered that the problem stemmed from Webpack's inability to bundle native modules. I was able to fix it with two steps:
Replace step 2 with whatever is necessary to make sure that |
Getting the following error on Debian 3.16.7 GNU/Linux
Error: Could not locate the bindings file. Tried:
→ /node_modules/node-expat/build/node_expat.node
→ /node_modules/node-expat/build/Debug/node_expat.node
→ /node_modules/node-expat/build/Release/node_expat.node
→ /node_modules/node-expat/out/Debug/node_expat.node
→ /node_modules/node-expat/Debug/node_expat.node
→ /node_modules/node-expat/out/Release/node_expat.node
→ /node_modules/node-expat/Release/node_expat.node
→ /node_modules/node-expat/build/default/node_expat.node
→ /node_modules/node-expat/compiled/4.4.5/linux/x64/node_expat.node
at bindings (/node_modules/node-expat/node_modules/bindings/bindings.js:88:9)
at Object. (/node_modules/node-expat/lib/node-expat.js:4:32)
The text was updated successfully, but these errors were encountered: