# Node-red-contrib-usbhid raspberry PI 3

**URL:** <https://discourse.nodered.org/t/node-red-contrib-usbhid-raspberry-pi-3/3532>\
**Category:** General\
**Created:** [28 September 2018 13:42 UTC](https://discourse.nodered.org/t/node-red-contrib-usbhid-raspberry-pi-3/3532 "2018-09-28T13:42:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jewendt](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@jewendt](https://discourse.nodered.org/u/jewendt)\
**Post date:** [28 September 2018 13:42 UTC](https://discourse.nodered.org/t/node-red-contrib-usbhid-raspberry-pi-3/3532/1 "2018-09-28T13:42:58Z")

</div>

I am trying to utilize this node on a Raspberry PI 3 however it errors during install of the node. I traced it back to the original usbhid not being compiled for the PI3 arm chip. Can someone help me figure out how to get this working for my pi3?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [28 September 2018 14:14 UTC](https://discourse.nodered.org/t/node-red-contrib-usbhid-raspberry-pi-3/3532/2 "2018-09-28T14:14:54Z")

</div>

If you can share the actual error message it may help.

---

<div class="post-metadata">

**Author:** ![jewendt](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@jewendt](https://discourse.nodered.org/u/jewendt)\
**Post date:** [28 September 2018 14:59 UTC](https://discourse.nodered.org/t/node-red-contrib-usbhid-raspberry-pi-3/3532/3 "2018-09-28T14:59:42Z")

</div>

'[https://github.com/somebuddy87/node-red-contrib-usbhid/issues/3](https://github.com/somebuddy87/node-red-contrib-usbhid/issues/3)'

I created this issue that documents the error. It looks like a simple compile issue but it is beyond my capabilities at this point to do that.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [28 September 2018 15:33 UTC](https://discourse.nodered.org/t/node-red-contrib-usbhid-raspberry-pi-3/3532/4 "2018-09-28T15:33:30Z")

</div>

In an effort to not have the same conversation in two places, I'm just going to post that I've responded to the issue - [https://github.com/somebuddy87/node-red-contrib-usbhid/issues/3](https://github.com/somebuddy87/node-red-contrib-usbhid/issues/3)

You are on an ancient version of npm that is probably causing the install issues. I've pointed you at our update script for the Pi.

---

<div class="post-metadata">

**Author:** ![jewendt](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@jewendt](https://discourse.nodered.org/u/jewendt)\
**Post date:** [1 October 2018 19:58 UTC](https://discourse.nodered.org/t/node-red-contrib-usbhid-raspberry-pi-3/3532/5 "2018-10-01T19:58:39Z")

</div>

Thanks, still having a problem. I documented the details in the github link.

John

---

<div class="post-metadata">

**Author:** ![jewendt](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@jewendt](https://discourse.nodered.org/u/jewendt)\
**Post date:** [2 October 2018 20:34 UTC](https://discourse.nodered.org/t/node-red-contrib-usbhid-raspberry-pi-3/3532/6 "2018-10-02T20:34:18Z")

</div>

I did get it working. Here are the details for other newbies like me. Don't exactly understand everything here but it worked! After the below steps all you need to do is reboot and install the USBHID Nodes

pi@100S\_QA\_PI:~ $ cd .node-red

pi@100S\_QA\_PI:/.node-red $ sudo npm install -g node-gyp

pi@100S\_QA\_PI:/.node-red $ sudo apt install libusb-1.0-0 libusb-1.0-0-dev

pi@100S\_QA\_PI:/.node-red $ sudo apt-get install libudev-dev

pi@100S\_QA\_PI:/.node-red $ sudo npm install node-hid --build-from-source --unsafe-perm

pi@100S\_QA\_PI:/.node-red $ sudo mkdir -p /etc/udev/rules.d

pi@100S\_QA\_PI:/.node-red $ sudo nano /etc/udev/rules.d/85-pure-data.rules  
SUBSYSTEM=="usb", GROUP="input", MODE="777"

pi@100S\_QA\_PI:/.node-red $

pi@100S\_QA\_PI:/.node-red $ sudo groupadd -f input

pi@100S\_QA\_PI:/.node-red $

pi@100S\_QA\_PI:/.node-red $ sudo gpasswd -a pi input
