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.

Cannot find module '../build/Release/binding.node'

See original GitHub issue

I’m encountering an issue when trying to run a NodeJS app from an Intel Edison Arduino board. The error I receive is Cannot find module '../build/Release/binding.node, stemming from the bluetooth-hci-socket library, which I see that you also maintain. The binding.node file in question does not appear under the Release directory. Can I do anything to create the file, or is this a bug?

ERROR: module.js:340
ERROR: throw err;
ERROR: ^
ERROR: Error: Cannot find module ‘…/build/Release/binding.node’
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/home/root/.node_app_slot/node_modules/bleno/node_modules/bluetooth-hci-socket/lib/native.js:4:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:3
  • Comments:11

github_iconTop GitHub Comments

3reactions
WayneKeenancommented, Mar 12, 2016

I had this error and managed to make it go away by deleting the node_modules folder and repeating the npm install…

I think what happened was I had a ‘messy’ build tree. During the npm install of bleno I added each of these packages one by one: libhidapi-dev
libusb-dev
libusb-1.0-0.dev

and tried instilling after each, I think things just got messy. purging the node_modules folder did the trick

BTW, this and noble is such great work Sandeep, thank you so much!

2reactions
JustARabbitcommented, Dec 16, 2018

Installed node LTS version 8.11.1 resolved it for me on Raspbian OS, Raspberry Pi 3 B+. sudo n 8.11.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues - GitHub
And I have this mistake that I can't solve. sudo node ... Error: Cannot find module '../build/Release/binding.node' at Function.Module.
Read more >
How do I resolve "Cannot find module" error using Node.js?
Using npm install installs the module into the current directory only (in a subdirectory called node_modules ). Is app.js located under ...
Read more >
sandeepmistry/noble - Gitter
I'm using Win 10 Pro x64, Node 7.6.0, and nwjs-v0.14.7-win-ia32. ... Error: Cannot find module '../build/Release/binding.node' at Function.Module.
Read more >
cannot find module [Node npm Error Solved] - freeCodeCamp
In my case, I got it like this "Module not found: Error: Can't resolve 'react-icons/fa' in 'C:\Users\user\Desktop\Projects\Address Locator\ ...
Read more >
bindings - npm
This module checks all the possible locations that a native addon would be built at, and returns the first one that loads successfully....
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