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

Update needs published to npmjs #8

Open
dudleyjosh opened this issue Sep 21, 2019 · 4 comments
Open

Update needs published to npmjs #8

dudleyjosh opened this issue Sep 21, 2019 · 4 comments

Comments

@dudleyjosh
Copy link

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
Copy link

same problem here. Did you find a work around?

@philesgilles
Copy link

Hi ! Did you find a solution ?

@dudleyjosh
Copy link
Author

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants