# Installing udmx node

**URL:** <https://discourse.nodered.org/t/installing-udmx-node/5165>\
**Category:** General\
**Created:** [24 November 2018 12:18 UTC](https://discourse.nodered.org/t/installing-udmx-node/5165 "2018-11-24T12:18:52Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@nick](https://discourse.nodered.org/u/nick)\
**Post date:** [24 November 2018 12:18 UTC](https://discourse.nodered.org/t/installing-udmx-node/5165/1 "2018-11-24T12:18:52Z")

</div>

if i wat to install the npm i node-red-contrib-udmx node i get a error.  
does sombody know why?  
i am using a rbp 3b.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [24 November 2018 12:27 UTC](https://discourse.nodered.org/t/installing-udmx-node/5165/2 "2018-11-24T12:27:31Z")

</div>

Because something has gone wrong? 🙃

If you post the actual error someone might be able to suggest what to do. Without the error, it would only be guesswork. But also please include the versions of Node-RED, node.js (listed on start-up message of Node-RED) and which platform you are running on

---

<div class="post-metadata">

**Author:** ![nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@nick](https://discourse.nodered.org/u/nick)\
**Post date:** [24 November 2018 13:26 UTC](https://discourse.nodered.org/t/installing-udmx-node/5165/3 "2018-11-24T13:26:10Z")

</div>

Hi Ukmoose,

see info below

> usb@1.5.0 install /home/pi/.node-red/node\_modules/node-red-contrib-udmx/node\_modules/usb  
> node-pre-gyp install --fallback-to-build  
> node-pre-gyp WARN Using request for node-pre-gyp https download  
> node-pre-gyp WARN Tried to download(404): [https://github.com/tessel/node-usb/releases/download/1.5.0/usb\_bindings-v1.5.0-node-v57-linux-arm.tar.gz](https://github.com/tessel/node-usb/releases/download/1.5.0/usb_bindings-v1.5.0-node-v57-linux-arm.tar.gz)  
> node-pre-gyp WARN Pre-built binaries not found for usb@1.5.0 and node@8.11.1 (node-v57 ABI, glibc) (falling back to source compile with node-gyp)  
> make: Entering directory '/home/pi/.node-red/node\_modules/node-red-contrib-udmx/node\_modules/usb/build'  
> CC(target) Release/obj.target/libusb/libusb/libusb/core.o  
> CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o  
> CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o  
> CC(target) Release/obj.target/libusb/libusb/libusb/io.o  
> CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o  
> CC(target) Release/obj.target/libusb/libusb/libusb/sync.o  
> CC(target) Release/obj.target/libusb/libusb/libusb/os/poll\_posix.o  
> CC(target) Release/obj.target/libusb/libusb/libusb/os/threads\_posix.o  
> CC(target) Release/obj.target/libusb/libusb/libusb/os/linux\_usbfs.o  
> CC(target) Release/obj.target/libusb/libusb/libusb/os/linux\_udev.o  
> ../libusb/libusb/os/linux\_udev.c:40:21: fatal error: libudev.h: No such file or directory  
> #include \<libudev.h\>  
> ^  
> compilation terminated.  
> libusb.target.mk:132: recipe for target 'Release/obj.target/libusb/libusb/libusb/os/linux\_udev.o' failed  
> make: Leaving directory '/home/pi/.node-red/node\_modules/node-red-contrib-udmx/node\_modules/usb/build'  
> make: \*\*\* [Release/obj.target/libusb/libusb/libusb/os/linux\_udev.o] Error 1  
> gyp ERR! build error  
> gyp ERR! stack Error: `make` failed with exit code: 2  
> gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:276:23)  
> gyp ERR! stack at emitTwo (events.js:126:13)  
> gyp ERR! stack at ChildProcess.emit (events.js:214:7)  
> gyp ERR! stack at Process.ChildProcess.\_handle.onexit (internal/child\_process.js:198:12)  
> gyp ERR! System Linux 4.9.59-v7+  
> gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "build" "--fallback-to-build" "--module=/home/pi/.node-red/node\_modules/node-red-contrib-udmx/node\_modules/usb/src/binding/usb\_bindings.node" "--module\_name=usb\_bindings" "--module\_path=/home/pi/.node-red/node\_modules/node-red-contrib-udmx/node\_modules/usb/src/binding" "--napi\_version=1" "--node\_abi\_napi=napi" "--napi\_build\_version=0" "--node\_napi\_label=node-v57"  
> gyp ERR! cwd /home/pi/.node-red/node\_modules/node-red-contrib-udmx/node\_modules/usb  
> gyp ERR! node -v v8.11.1  
> gyp ERR! node-gyp -v v3.4.0  
> gyp ERR! not ok  
> node-pre-gyp ERR! build error  
> node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp build --fallback-to-build --module=/home/pi/.node-red/node\_modules/node-red-contrib-udmx/node\_modules/usb/src/binding/usb\_bindings.node --module\_name=usb\_bindings --module\_path=/home/pi/.node-red/node\_modules/node-red-contrib-udmx/node\_modules/usb/src/binding --napi\_version=1 --node\_abi\_napi=napi --napi\_build\_version=0 --node\_napi\_label=node-v57' (1)  
> node-pre-gyp ERR! stack at ChildProcess. (/home/pi/.node-red/node\_modules/node-red-contrib-udmx/node\_modules/usb/node\_modules/node-pre-gyp/lib/util/compile.js:83:29)  
> node-pre-gyp ERR! stack at emitTwo (events.js:126:13)  
> node-pre-gyp ERR! stack at ChildProcess.emit (events.js:214:7)  
> node-pre-gyp ERR! stack at maybeClose (internal/child\_process.js:925:16)  
> node-pre-gyp ERR! stack at Process.ChildProcess.\_handle.onexit (internal/child\_process.js:209:5)  
> node-pre-gyp ERR! System Linux 4.9.59-v7+  
> node-pre-gyp ERR! command "/usr/bin/node" "/home/pi/.node-red/node\_modules/node-red-contrib-udmx/node\_modules/usb/node\_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"  
> node-pre-gyp ERR! cwd /home/pi/.node-red/node\_modules/node-red-contrib-udmx/node\_modules/usb  
> node-pre-gyp ERR! node -v v8.11.1  
> node-pre-gyp ERR! node-pre-gyp -v v0.11.0  
> node-pre-gyp ERR! not ok  
> Failed to execute 'node-gyp build --fallback-to-build --module=/home/pi/.node-red/node\_modules/node-red-contrib-udmx/node\_modules/usb/src/binding/usb\_bindings.node --module\_name=usb\_bindings --module\_path=/home/pi/.node-red/node\_modules/node-red-contrib-udmx/node\_modules/usb/src/binding --napi\_version=1 --node\_abi\_napi=napi --napi\_build\_version=0 --node\_napi\_label=node-v57' (1)  
> npm WARN This failure might be due to the use of legacy binary "node"  
> npm WARN For further explanations, please read  
> /usr/share/doc/nodejs/README.Debian

npm ERR! usb@1.5.0 install: `node-pre-gyp install --fallback-to-build`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the usb@1.5.0 install script.  
npm ERR! This is most likely a problem with the usb package,  
npm ERR! not with npm itself.  
npm ERR! Tell the author that this fails on your system:  
npm ERR! node-pre-gyp install --fallback-to-build  
npm ERR! You can get their info via:  
npm ERR! npm owner ls usb  
npm ERR! There is likely additional logging output above.  
npm ERR! System Linux 4.9.59-v7+  
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "--save" "--save-prefix=~" "--production" "node-red-contrib-udmx@1.0.6"  
npm ERR! cwd /home/pi/.node-red  
npm ERR! node -v v8.11.1  
npm ERR! npm -v 1.4.21  
npm ERR! code ELIFECYCLE  
npm ERR!  
npm ERR! Additional logging details can be found in:  
npm ERR! /home/pi/.node-red/npm-debug.log  
npm ERR! not ok code 0

---

<div class="post-metadata">

**Author:** ![nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@nick](https://discourse.nodered.org/u/nick)\
**Post date:** [24 November 2018 13:29 UTC](https://discourse.nodered.org/t/installing-udmx-node/5165/4 "2018-11-24T13:29:46Z")

</div>

i am using node red version: v0.19.3

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [24 November 2018 13:43 UTC](https://discourse.nodered.org/t/installing-udmx-node/5165/5 "2018-11-24T13:43:09Z")

</div>

You have an ancient version of npm, you are on 1.4.21, the latest is 6.x. Since it seems you are on a pi then, assuming you are running Raspbian, I suggest updating everything using the recommended pi install/upgrade script in the docs  
[https://nodered.org/docs/hardware/raspberrypi](https://nodered.org/docs/hardware/raspberrypi)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [24 November 2018 14:56 UTC](https://discourse.nodered.org/t/installing-udmx-node/5165/6 "2018-11-24T14:56:15Z")

</div>

After you have upgraded.... then the main error is that there is library missing so it won't compile...

```
../libusb/libusb/os/linux_udev.c:40:21: fatal error: libudev.h: No such file or directory
#include <libudev.h>
^

```

so you need to do

sudo apt-get update && sudo apt-get install libudev-dev

then retry the install

---

<div class="post-metadata">

**Author:** ![nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@nick](https://discourse.nodered.org/u/nick)\
**Post date:** [26 November 2018 17:04 UTC](https://discourse.nodered.org/t/installing-udmx-node/5165/7 "2018-11-26T17:04:52Z")

</div>

sow i did the upgrade and did the sudo and now i am able do instal it.  
thanks to you all

---

<div class="post-metadata">

**Author:** ![nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@nick](https://discourse.nodered.org/u/nick)\
**Post date:** [22 December 2018 10:38 UTC](https://discourse.nodered.org/t/installing-udmx-node/5165/8 "2018-12-22T10:38:08Z")

</div>

sow i orderd a usb dmx dongle to work with the udmx node.  
now i have the problem that the udmx node does not reccunice the usb dongle.  
i think i have to instal the drives for the usb dongel.  
can you tell me how to do that?

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [22 December 2018 11:16 UTC](https://discourse.nodered.org/t/installing-udmx-node/5165/9 "2018-12-22T11:16:10Z")

</div>

i’d start by googling the name of the usb dongle you have bought and linux

---

<div class="post-metadata">

**Author:** ![nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@nick](https://discourse.nodered.org/u/nick)\
**Post date:** [22 December 2018 16:16 UTC](https://discourse.nodered.org/t/installing-udmx-node/5165/10 "2018-12-22T16:16:39Z")

</div>

Sow i googled it but i can not find a linux driver.  
sow probelley i orderded the wrong usb dmx dongle.  
can somebody tell me witch dongle will work with the udxm node and a raspberry pi?
