Error: Could not load the bindings file
See original GitHub issueHi,
I installed the package successfully and when running the the code below:
var ibmdb = require('ibm_db')();
This error is returned:
`App threw an error during load
Error: Could not locate the bindings file. Tried:
→ C:\Users\s4084934\Documents\ElectronProjects\MDMUI\node_modules\ibm_db\buil
d\odbc_bindings.node
→ C:\Users\s4084934\Documents\ElectronProjects\MDMUI\node_modules\ibm_db\buil
d\Debug\odbc_bindings.node
→ C:\Users\s4084934\Documents\ElectronProjects\MDMUI\node_modules\ibm_db\buil
d\Release\odbc_bindings.node
→ C:\Users\s4084934\Documents\ElectronProjects\MDMUI\node_modules\ibm_db\out\
Debug\odbc_bindings.node
→ C:\Users\s4084934\Documents\ElectronProjects\MDMUI\node_modules\ibm_db\Debu
g\odbc_bindings.node
→ C:\Users\s4084934\Documents\ElectronProjects\MDMUI\node_modules\ibm_db\out\
Release\odbc_bindings.node
→ C:\Users\s4084934\Documents\ElectronProjects\MDMUI\node_modules\ibm_db\Rele
ase\odbc_bindings.node
→ C:\Users\s4084934\Documents\ElectronProjects\MDMUI\node_modules\ibm_db\buil
d\default\odbc_bindings.node
→ C:\Users\s4084934\Documents\ElectronProjects\MDMUI\node_modules\ibm_db\comp
iled\7.4.0\win32\x64\odbc_bindings.node
at bindings (C:\Users\s4084934\Documents\ElectronProjects\MDMUI\node_modules
\bindings\bindings.js:88:9)
at Object.<anonymous> (C:\Users\s4084934\Documents\ElectronProjects\MDMUI\no
de_modules\ibm_db\lib\odbc.js:27:31)
at Object.<anonymous> (C:\Users\s4084934\Documents\ElectronProjects\MDMUI\no
de_modules\ibm_db\lib\odbc.js:1770:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)`
However, I can see in my folders that the file exists in
C:\Users\s4084934\Documents\ElectronProjects\MDMUI\node_modules\ibm_db\build\Release\odbc_bindings.node
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (9 by maintainers)
Top Results From Across the Web
Error: Could not locate the bindings file · Issue #1511
This happened due to an incompatible Node version, a simple solution should be to use a different node version with nvm or update...
Read more >Error: Could not locate the bindings file. Tried: #56
In my case it was complaining about the bindings for ursa package. Fixed by simply installing it with npm install ursa . –...
Read more >Error: Could not locate the bindings file
Hello @karl404,. I just tested on Mac OS Big Sur 11.4 with a fresh installation of nodeJS v16.4.0. I have not been able...
Read more >Error: Could not locate the bindings file. Tried - javascript
rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/bindings/1.5.0/node_modules/bindings/bindings.js:135.
Read more >Bindings NPM
When the .node file could not be loaded, node-bindings throws an Error with a nice error message telling you exactly what was tried....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes same error
Install ibm_db@2.2.0 and verify. Closing the issue now. Thanks.