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.

Could not locate bindings file

See original GitHub issue

When I’m trying to run project with deasync module, on application start I get:

/opt/website/my-proj/node_modules/deasync/node_modules/bindings/bindings.js:91
  throw err
        ^
Error: Could not locate the bindings file. Tried:
 → /opt/website/my-proj/node_modules/deasync/build/deasync.node
 → /opt/website/my-proj/node_modules/deasync/build/Debug/deasync.node
 → /opt/website/my-proj/node_modules/deasync/build/Release/deasync.node
 → /opt/website/my-proj/node_modules/deasync/out/Debug/deasync.node
 → /opt/website/my-proj/node_modules/deasync/Debug/deasync.node
 → /opt/website/my-proj/node_modules/deasync/out/Release/deasync.node
 → /opt/website/my-proj/node_modules/deasync/Release/deasync.node
 → /opt/website/my-proj/node_modules/deasync/build/default/deasync.node
 → /opt/website/my-proj/node_modules/deasync/compiled/0.11.14/linux/x64/deasync.node
    at bindings (/opt/website/my-proj/node_modules/deasync/node_modules/bindings/bindings.js:88:9)
    at Object.<anonymous> (/opt/website/my-proj/node_modules/deasync/index.js:13:31)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/opt/website/my-proj/db/methods/users.js:10:15)
    at Module._compile (module.js:460:26)

Here’s what directory browsing gives me:

$ ls ./node_modules/deasync/
bin  binding.gyp  build.js  index.js  node_modules  package.json  quick-test.js  README.md  src  test.js
$ ls ./node_modules/deasync/bin/
darwin-x64  linux-ia32  linux-x64  win32-ia32  win32-x64

OS version:

$ cat /proc/version 
Linux version 3.8.13-44.el6uek.x86_64 (mockbuild@ca-build44.us.oracle.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #2 SMP Fri Aug 8 21:59:01 PDT 2014

Node version:

$ node --version
v0.11.14

npm version:

$ npm --version
2.0.0

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
m-teslyacommented, Feb 20, 2015

Ok, it seems, this did the trick run:

npm uninstall deasync

then

npm install

And it works. Thank you for your help

0reactions
jliujackcommented, Dec 9, 2022

refer to this jest issues, it may solve a type of problem https://github.com/facebook/jest/issues/1694#issuecomment-257113870

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Could not locate the bindings file · Issue #1511 - GitHub
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 - Edge Impulse Forum
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 building mongosh - Developer Tools - MongoDB
Is it still failing with the same error (“Could not locate the bindings file”) when using Node.js 14? If so, you may need...
Read more >
Error: Could not locate the bindings file. Tried - Glitch Support
Error: Could not locate the bindings file. Tried ... please help guys.! ... Hello @3MoSteve, You can try npm rebuild in your teminal...
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