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.

binding file could not be found

See original GitHub issue

If i start my app including serialport var sp = require('serialport').SerialPort; i get an error from bindings that the bindings file could not be found. Is there a configuration error? It’s a fresh install.

xxx@ubuntu:~/Arbeitsfläche/node/firstapp$ node app

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
Error: Could not load the bindings file. Tried:
 -> /home/xxx/Arbeitsfläche/node/firstapp/node_modules/serialport/build/Debug/serialport.node
 -> /home/xxx/Arbeitsfläche/node/firstapp/node_modules/serialport/build/Release/serialport.node
 -> /home/xxx/Arbeitsfläche/node/firstapp/node_modules/serialport/out/Debug/serialport.node
 -> /home/xxx/Arbeitsfläche/node/firstapp/node_modules/serialport/Debug/serialport.node
 -> /home/xxx/Arbeitsfläche/node/firstapp/node_modules/serialport/out/Release/serialport.node
 -> /home/xxx/Arbeitsfläche/node/firstapp/node_modules/serialport/Release/serialport.node
 -> /home/xxx/Arbeitsfläche/node/firstapp/node_modules/serialport/build/default/serialport.node
 -> /home/xxx/Arbeitsfläche/node/firstapp/node_modules/serialport/compiled/0.6/linux/ia32/serialport.node
    at bindings (/home/xxx/Arbeitsfläche/node/firstapp/node_modules/serialport/node_modules/bindings/bindings.js:82:13)
    at Object.<anonymous> (/home/xxx/Arbeitsfläche/node/firstapp/node_modules/serialport/serialport.js:7:44)
    at Module._compile (module.js:441:26)
    at Object..js (module.js:459:10)
    at Module.load (module.js:348:32)
    at Function._load (module.js:308:12)
    at Module.require (module.js:354:17)
    at require (module.js:370:17)
    at Object.<anonymous> (/home/xxx/Arbeitsfläche/node/firstapp/app.js:20:10)
    at Module._compile (module.js:441:26)

Issue Analytics

  • State:closed
  • Created 11 years ago
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
joefernercommented, Jul 30, 2012

Can you try opening a terminal to node_modules/serialport and run “node-gyp configure build”. This might be a similar problem to pull request #65 which hasn’t been published to npm yet.

0reactions
ghostcommented, Dec 17, 2013

Hey there, thank you. i finally fixed it, it was a problem with setting path of python in visual express 2012.

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
Hi,. I am having the same problem that I have seen reported here by others, but the solutions offered haven't worked for me....
Read more >
Error: Could not locate the bindings file. Tried - Glitch Support
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 >
Unable to bind an XREF in AutoCAD Products
XREF is unloaded, orphaned, or is otherwise missing. · XREF is part of a circular reference. · XREF is attached more than once....
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