somebuddy87/node-red-contrib-usbhid

Update needs published to npmjs

Opened this issue · 4 comments

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.

same problem here. Did you find a work around?

Hi ! Did you find a solution ?

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.

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