question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Could not load the bindings file

See original GitHub issue

Hi,

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:closed
  • Created 6 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
ahmedalhulaibicommented, May 29, 2017

Yes same error

0reactions
bimalkjhacommented, Sep 17, 2017

Install ibm_db@2.2.0 and verify. Closing the issue now. Thanks.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found