-
Notifications
You must be signed in to change notification settings - Fork 278
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
Add Troubleshooting FAQ #182
Comments
Some mention of how to enable those access rights without requiring |
After fighting |
Yes, libusb project recommends HIDAPI for HID device. It supports both USB and Bluetooth HID and even other types of HID devices. There is a active node binding node-hid as well. hidapi project: node-hid: |
Please refer to this discussion, libusb-1.0.26 adds the support to detach kernel driver with correct entitlement (which is diffcult to get from Apple) but at least you can run as root. |
Please read libusb FAQ here. |
Better late than never 😄 |
Runtime errors
.open(false)
,.setConfiguration(1)
to tell the kernel to configure the device.Install errors
gyp WARN EACCES user "root" does not have permission to access the dev dir
(Failed at the usb@1.2.0 install script.. #175, user "root" does not have permission to access the dev dir "/home/pi/scanner/node_modules/usb/.node-gyp/8.9.2" #210, npm ERR! Failed at the usb@1.3.1 install script 'node-pre-gyp install --fallback-to-build'. #218)npm -g
as your normal user.npm install --unsafe-perm usb
.The text was updated successfully, but these errors were encountered: