# Ubuntu 20.04 Node Red and node-red-contrib-modbus

**URL:** <https://discourse.nodered.org/t/ubuntu-20-04-node-red-and-node-red-contrib-modbus/30547>\
**Category:** General\
**Created:** [22 July 2020 12:37 UTC](https://discourse.nodered.org/t/ubuntu-20-04-node-red-and-node-red-contrib-modbus/30547 "2020-07-22T12:37:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kampfwurst](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kampfwurst/32/26264_2.png) [@Kampfwurst](https://discourse.nodered.org/u/Kampfwurst)\
**Post date:** [22 July 2020 12:37 UTC](https://discourse.nodered.org/t/ubuntu-20-04-node-red-and-node-red-contrib-modbus/30547/1 "2020-07-22T12:37:32Z")

</div>

Hi,

I would like to install the node-red-contrib-modbus under ubuntu 20.04 and node red 1.0.6.  
I cant get it work. I get the following error.

```auto
-----------------------------------------------------------
2020-07-22T12:36:21.813Z installieren : node-red-contrib-modbus 5.13.3

2020-07-22T12:36:22.334Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-modbus@5.13.3
2020-07-22T12:36:27.813Z [out] 
2020-07-22T12:36:27.813Z [out] > @serialport/bindings@9.0.0 install /root/snap/node-red/595/node_modules/@serialport/bindings
2020-07-22T12:36:27.813Z [out] > prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2020-07-22T12:36:27.813Z [out] 
2020-07-22T12:36:27.953Z [err] prebuild-install
2020-07-22T12:36:27.953Z [err] WARN install EPERM: operation not permitted, lchown '/root/snap/node-red/595/node_modules/@serialport/bindings/build/Release'
2020-07-22T12:36:28.309Z [err] gyp
2020-07-22T12:36:28.309Z [err] ERR! build error 
2020-07-22T12:36:28.309Z [err] gyp
2020-07-22T12:36:28.309Z [err] ERR! 
2020-07-22T12:36:28.310Z [err] stack Error: not found: make
2020-07-22T12:36:28.310Z [err] gyp ERR!
2020-07-22T12:36:28.310Z [err] stack at getNotFoundError (/snap/node-red/595/lib/node_modules/npm/node_modules/which/which.js:13:12)
2020-07-22T12:36:28.310Z [err] gyp ERR!
2020-07-22T12:36:28.310Z [err] stack at F (/snap/node-red/595/lib/node_modules/npm/node_modules/which/which.js:68:19)
2020-07-22T12:36:28.310Z [err] gyp ERR!
2020-07-22T12:36:28.310Z [err] stack at E (/snap/node-red/595/lib/node_modules/npm/node_modules/which/which.js:80:29)
2020-07-22T12:36:28.310Z [err] gyp ERR!
2020-07-22T12:36:28.310Z [err] stack at /snap/node-red/595/lib/node_modules/npm/node_modules/which/which.js:89:16
2020-07-22T12:36:28.310Z [err] gyp ERR!
2020-07-22T12:36:28.310Z [err] stack at /snap/node-red/595/lib/node_modules/npm/node_modules/isexe/index.js:42:5
2020-07-22T12:36:28.310Z [err] gyp ERR!
2020-07-22T12:36:28.310Z [err] stack at /snap/node-red/595/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
2020-07-22T12:36:28.310Z [err] gyp ERR!
2020-07-22T12:36:28.310Z [err] stack at FSReqWrap.oncomplete (fs.js:153:21)
2020-07-22T12:36:28.310Z [err] gyp
2020-07-22T12:36:28.310Z [err] ERR! System
2020-07-22T12:36:28.310Z [err] Linux 5.4.0-42-generic
2020-07-22T12:36:28.310Z [err] gyp
2020-07-22T12:36:28.310Z [err] ERR! 
2020-07-22T12:36:28.310Z [err] command "/snap/node-red/595/bin/node" "/snap/node-red/595/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-07-22T12:36:28.310Z [err] gyp
2020-07-22T12:36:28.310Z [err] ERR! cwd
2020-07-22T12:36:28.310Z [err] /root/snap/node-red/595/node_modules/@serialport/bindings
2020-07-22T12:36:28.310Z [err] gyp ERR!
2020-07-22T12:36:28.310Z [err] node -v
2020-07-22T12:36:28.310Z [err] v10.20.1
2020-07-22T12:36:28.310Z [err] gyp
2020-07-22T12:36:28.310Z [err] ERR! 
2020-07-22T12:36:28.310Z [err] node-gyp -v v5.1.0
2020-07-22T12:36:28.310Z [err] gyp 
2020-07-22T12:36:28.310Z [err] ERR! not ok
2020-07-22T12:36:28.310Z [err]  
2020-07-22T12:36:28.316Z [out] 
2020-07-22T12:36:28.316Z [out] > @serialport/bindings@8.0.8 install /root/snap/node-red/595/node_modules/modbus-serial/node_modules/@serialport/bindings
2020-07-22T12:36:28.316Z [out] > prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2020-07-22T12:36:28.316Z [out] 
2020-07-22T12:36:28.452Z [err] prebuild-install
2020-07-22T12:36:28.452Z [err] WARN install EPERM: operation not permitted, lchown '/root/snap/node-red/595/node_modules/modbus-serial/node_modules/@serialport/bindings/build/Release'
2020-07-22T12:36:28.808Z [err] gyp
2020-07-22T12:36:28.808Z [err] ERR! build error 
2020-07-22T12:36:28.808Z [err] gyp
2020-07-22T12:36:28.808Z [err] ERR! 
2020-07-22T12:36:28.808Z [err] stack Error: not found: make
2020-07-22T12:36:28.808Z [err] gyp ERR!
2020-07-22T12:36:28.808Z [err] stack
2020-07-22T12:36:28.808Z [err] at getNotFoundError (/snap/node-red/595/lib/node_modules/npm/node_modules/which/which.js:13:12)
2020-07-22T12:36:28.808Z [err] gyp ERR!
2020-07-22T12:36:28.808Z [err] stack at F (/snap/node-red/595/lib/node_modules/npm/node_modules/which/which.js:68:19)
2020-07-22T12:36:28.808Z [err] gyp ERR!
2020-07-22T12:36:28.809Z [err] stack
2020-07-22T12:36:28.809Z [err] at E (/snap/node-red/595/lib/node_modules/npm/node_modules/which/which.js:80:29)
2020-07-22T12:36:28.809Z [err] gyp 
2020-07-22T12:36:28.809Z [err] ERR! stack
2020-07-22T12:36:28.809Z [err] at /snap/node-red/595/lib/node_modules/npm/node_modules/which/which.js:89:16
2020-07-22T12:36:28.809Z [err] gyp 
2020-07-22T12:36:28.809Z [err] ERR! stack
2020-07-22T12:36:28.809Z [err] at /snap/node-red/595/lib/node_modules/npm/node_modules/isexe/index.js:42:5
2020-07-22T12:36:28.809Z [err] gyp 
2020-07-22T12:36:28.809Z [err] ERR! stack
2020-07-22T12:36:28.809Z [err] at /snap/node-red/595/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
2020-07-22T12:36:28.809Z [err] gyp 
2020-07-22T12:36:28.809Z [err] ERR! stack
2020-07-22T12:36:28.809Z [err] at FSReqWrap.oncomplete (fs.js:153:21)
2020-07-22T12:36:28.809Z [err] gyp
2020-07-22T12:36:28.809Z [err] ERR! 
2020-07-22T12:36:28.809Z [err] System Linux 5.4.0-42-generic
2020-07-22T12:36:28.809Z [err] gyp
2020-07-22T12:36:28.809Z [err] ERR! 
2020-07-22T12:36:28.809Z [err] command "/snap/node-red/595/bin/node" "/snap/node-red/595/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-07-22T12:36:28.809Z [err] gyp 
2020-07-22T12:36:28.809Z [err] ERR! cwd
2020-07-22T12:36:28.809Z [err] /root/snap/node-red/595/node_modules/modbus-serial/node_modules/@serialport/bindings
2020-07-22T12:36:28.809Z [err] gyp ERR!
2020-07-22T12:36:28.809Z [err] node -v v10.20.1
2020-07-22T12:36:28.809Z [err] gyp
2020-07-22T12:36:28.809Z [err] ERR! 
2020-07-22T12:36:28.809Z [err] node-gyp -v v5.1.0
2020-07-22T12:36:28.809Z [err] gyp 
2020-07-22T12:36:28.809Z [err] ERR! 
2020-07-22T12:36:28.809Z [err] not ok 
2020-07-22T12:36:28.927Z [err] npm 
2020-07-22T12:36:28.927Z [err] WARN optional SKIPPING OPTIONAL DEPENDENCY: @serialport/bindings@9.0.0 (node_modules/@serialport/bindings):
2020-07-22T12:36:28.927Z [err] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @serialport/bindings@9.0.0 install: `prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild`
2020-07-22T12:36:28.927Z [err] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
2020-07-22T12:36:28.927Z [err] 
2020-07-22T12:36:28.929Z [err] npm 
2020-07-22T12:36:28.929Z [err] ERR! code ELIFECYCLE
2020-07-22T12:36:28.929Z [err] npm 
2020-07-22T12:36:28.929Z [err] ERR! errno 1
2020-07-22T12:36:28.930Z [err] npm
2020-07-22T12:36:28.930Z [err] ERR! @serialport/bindings@8.0.8 install: `prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild`
2020-07-22T12:36:28.930Z [err] npm
2020-07-22T12:36:28.930Z [err] ERR! Exit status 1
2020-07-22T12:36:28.930Z [err] npm 
2020-07-22T12:36:28.930Z [err] ERR! 
2020-07-22T12:36:28.930Z [err] npm
2020-07-22T12:36:28.930Z [err] ERR! Failed at the @serialport/bindings@8.0.8 install script.
2020-07-22T12:36:28.930Z [err] npm
2020-07-22T12:36:28.930Z [err] ERR!
2020-07-22T12:36:28.930Z [err] This is probably not a problem with npm. There is likely additional logging output above.
2020-07-22T12:36:28.966Z [err] 
2020-07-22T12:36:28.966Z [err] npm ERR! A complete log of this run can be found in:
2020-07-22T12:36:28.966Z [err] npm ERR! /root/snap/node-red/595/.npm/_logs/2020-07-22T12_36_28_935Z-debug.log
2020-07-22T12:36:28.976Z rc=1

```

---

<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:** [22 July 2020 12:50 UTC](https://discourse.nodered.org/t/ubuntu-20-04-node-red-and-node-red-contrib-modbus/30547/2 "2020-07-22T12:50:33Z")

</div>

it looks like you are using snap rather than the full version of Node-RED. The snap version is restricted to its container so doesn't have access to external build tools required to build the bindings and indeed the serial port plug was for a long time not dynamic - that may have changed (not sure) but would need someone with snap skills to help work it out.

---

<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:** [22 July 2020 13:15 UTC](https://discourse.nodered.org/t/ubuntu-20-04-node-red-and-node-red-contrib-modbus/30547/3 "2020-07-22T13:15:32Z")

</div>

You can use the pi install script to install on Ubuntu. Remove the snap first.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 September 2020 13:15 UTC](https://discourse.nodered.org/t/ubuntu-20-04-node-red-and-node-red-contrib-modbus/30547/4 "2020-09-20T13:15:40Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
