somebuddy87 / node-red-contrib-usbhid

A node-hid (USB HID device access library) wrapper for nodered
Apache License 2.0
4 stars 19 forks source link

Update needs published to npmjs #8

Open dudleyjosh opened 5 years ago

dudleyjosh commented 5 years ago

The package.json file was updated about 6 months ago to point to node-hid ^v0.7.7 but if you try to install node-red-contrib-usbhid from npmjs (or from within Node-RED) it still tries to install v0.5.7 and fails.

pingustar commented 4 years ago

same problem here. Did you find a work around?

philesgilles commented 4 years ago

Hi ! Did you find a solution ?

dudleyjosh commented 4 years ago

I don't remember exactly what I did (it's been awhile) but I assume I probably just downloaded the updated package.json file from GitHub to the directory where I wanted to install node-red-contrib-usbhid (most likely ~/.node-red/node_modules/node-red-contrib-usbhid) and then ran npm install from that directory to force npm to install from that package.json file.

Richie765 commented 4 years ago

I wish there was a newer version on npmjs, it would be easier. I got it working perfectly though by installing it manually:

# first go to correct directory, usually ~/.node-red (/data for Docker installs)
cd ~/.node-red
npm install --production https://github.com/somebuddy87/node-red-contrib-usbhid

See also: https://nodered.org/docs/user-guide/runtime/adding-nodes