Comments (14)
Place the usb_bindings.node file in your node path or in the directory where usb.js is located.
from node-usb.
Where can I get the usb_bindings.node
file? Have the same issue on a debian squeeze.
from node-usb.
usb_bindings.node resides in build/Release.
from node-usb.
Sorry. And where to find build/Release
?!
from node-usb.
build/* will be generated by executing make respectively wscript and is inside the node-usb directory.
from node-usb.
but make
dies before the build directory is created. Heres my output:
root@debian-test:~/node-test/node-usb# make
node-waf -v configure clean build; node tests/node-usb-test.js
/bin/sh: node-waf: not found
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module './usb_bindings'
at Function._resolveFilename (module.js:332:11)
at Function._load (module.js:279:25)
at Module.require (module.js:354:17)
at require (module.js:370:17)
at Object.<anonymous> (/root/node-test/node-usb/usb.js:4:15)
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)
make: *** [make] Fehler 1
from node-usb.
As your log shows, you do not have node-waf inside your PATH.
node-waf -v configure clean build; node tests/node-usb-test.js
/bin/sh: node-waf: not found
node-waf is required for building a node module.
from node-usb.
i'm getting the same issue, but i'm not getting an error regarding node-waf
$ node tests/node-usb-test.js
module.js:340
throw err;
^
Error: Cannot find module 'usb_bindings'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object. (/Users/andrewsigler/Desktop/nodeUSB/node-usb-master/usb.js:4:15)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
from node-usb.
node-waf is not available anymore... node-gyp is the replacement...
from node-usb.
This is what is happening on my machine:
node examples/lsusb/lsusb.js
Error: Cannot find module './usb_bindings'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.<anonymous> (/Users/ms/Dropbox/Musafa/dev/node-usb/usb.js:4:15)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
Any ideas?
from node-usb.
what i tried so far:
- got Command Line Tools for OSX to get
make
https://developer.apple.com/downloads/ npm i node-gyp -g
- open Makefile and replace
node-waf
withnode-gyp
make
result is the same as the fellows above
from node-usb.
you can find "usb_bindings" here.
https://github.com/tessel/node-usb/releases
from node-usb.
After placing usb_bindings.node
into directory where usb.js is located, now i am getting following
(master) -> node usb.js
module.js:434
return process.dlopen(module, path._makeLong(filename));
^
Error: /home/yash/node-usb/usb_bindings.node: invalid ELF header
at Error (native)
at Object.Module._extensions..node (module.js:434:18)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/yash/node-usb/usb.js:4:15)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
from node-usb.
@yasharma That is caused by the fact that the binary is not suited for your OS. I however have the same problem at the moment, so I don't have a solution I'm afraid.
from node-usb.
Related Issues (20)
- segfault on make HOT 21
- Endpoint::Transfer in READ mode expects uint32_t as first parameter HOT 1
- Events? HOT 3
- preparation for node v0.8 HOT 2
- node-usb installation failure on Ubuntu and Mac HOT 3
- Build failure on Ubuntu 12.04 HOT 2
- Build failure under 0.8.5 HOT 6
- Build issue on Mac w/ numerous node versions HOT 2
- ..
- Error: The specified procedure could not be found. HOT 1
- Timeout issue
- Error: LIBUSB_ERROR_IO HOT 1
- setDebugLogLevel doesn't exist
- mac/libusb issue? HOT 2
- usb_bindings.node: undefined symbol: ev_rt_now HOT 3
- require("./usb_bindings") HOT 1
- Support for latest node releases HOT 1
- controlTransfer() and bulkTransfer() are not able to receive data from USB device HOT 2
- libusb-1.0 not found HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-usb.