Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Win8 npm install usb error #19

Closed
cacciatc opened this issue Jun 27, 2013 · 2 comments

Comments

@cacciatc
Copy link

@cacciatc cacciatc commented Jun 27, 2013

I extracted libusbx to C:\Program Files\libusb, but am getting an include file error when running npm install usb. Thoughts?

> usb@0.2.1 preinstall C:\Program Files\libusb\node_modules\usb
> node-gyp rebuild


C:\Program Files\libusb\node_modules\usb>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild 
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
cl : Command line warning D9025: overriding '/MT' with '/MD' [C:\Program Files\libusb\node_modules\usb\build\usb_bindings.vcxproj]
cl : Command line warning D9025: overriding '/MT' with '/MD' [C:\Program Files\libusb\node_modules\usb\build\usb_bindings.vcxproj]
  transfer.cc
cl : Command line warning D9025: overriding '/MT' with '/MD' [C:\Program Files\libusb\node_modules\usb\build\usb_bindings.vcxproj]
  node_usb.cc
c:\program files\libusb\node_modules\usb\src\node_usb.h(8): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory (..\src\node_usb.cc) [C:\Program Files\libusb\node_modules\usb\build\usb_bindings.vcxproj]
  device.cc
c:\program files\libusb\node_modules\usb\src\node_usb.h(8): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory (..\src\transfer.cc) [C:\Program Files\libusb\node_modules\usb\build\usb_bindings.vcxproj]
c:\program files\libusb\node_modules\usb\src\node_usb.h(8): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory (..\src\device.cc) [C:\Program Files\libusb\node_modules\usb\build\usb_bindings.vcxproj]
@danielchatfield

This comment has been minimized.

Copy link

@danielchatfield danielchatfield commented Feb 17, 2014

You don't have libusb installed

@danielchatfield

This comment has been minimized.

Copy link

@danielchatfield danielchatfield commented Feb 17, 2014

Follow instructions here: https://github.com/nonolith/node-usb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.