Cannot find module '../build/Release/binding.node'
See original GitHub issueI’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:
- Created 8 years ago
- Reactions:3
- Comments:11
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!
Installed node LTS version
8.11.1
resolved it for me on Raspbian OS, Raspberry Pi 3 B+.sudo n 8.11.1