# Error Installing Node-red Modbus snap V3.0.2 on Ubuntu core 16

**URL:** <https://discourse.nodered.org/t/error-installing-node-red-modbus-snap-v3-0-2-on-ubuntu-core-16/68016>\
**Category:** General\
**Created:** [21 September 2022 09:21 UTC](https://discourse.nodered.org/t/error-installing-node-red-modbus-snap-v3-0-2-on-ubuntu-core-16/68016 "2022-09-21T09:21:11Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kaij3](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kaij3/32/60268_2.png) [@Kaij3](https://discourse.nodered.org/u/Kaij3)\
**Post date:** [21 September 2022 09:21 UTC](https://discourse.nodered.org/t/error-installing-node-red-modbus-snap-v3-0-2-on-ubuntu-core-16/68016/1 "2022-09-21T09:21:11Z")

</div>

Hello all 👋,

I am currently using Node red snap, V3.0.2([Node-Red Snap](https://snapcraft.io/node-red)) and i'm trying to install node-red-contrib-modbus palette , [Modbus Palette](https://flows.nodered.org/node/node-red-contrib-modbus) but however I can't install it and these are some of the errors i faced.

These are some of the steps i tried before coming here:

- I have followed this [Steps](https://github.com/dceejay/nodered.snap/blob/master/README.md) to install node red modbus but it didn't work.

These are some of the errors i faced

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/0/d0a73b2c0bfc6ceec0ed3907f51005812ea0ec7d.png)

Would appreciate your guidance, really lost at this point.

Thank you! 😁

---

<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:** [21 September 2022 10:37 UTC](https://discourse.nodered.org/t/error-installing-node-red-modbus-snap-v3-0-2-on-ubuntu-core-16/68016/2 "2022-09-21T10:37:25Z")

</div>

The snap version of Node-RED is highly constrained inside it's container. So adding nodes that require native code (like the serialport for modbus) won't work. You will need to use the full install instead.

---

<div class="post-metadata">

**Author:** ![Kaij3](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kaij3/32/60268_2.png) [@Kaij3](https://discourse.nodered.org/u/Kaij3)\
**Post date:** [21 September 2022 13:17 UTC](https://discourse.nodered.org/t/error-installing-node-red-modbus-snap-v3-0-2-on-ubuntu-core-16/68016/3 "2022-09-21T13:17:36Z")

</div>

@dceejay thanks for the reply!

Is there any way i can full install it? if so could you guide me on this.

Thanks!

---

<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:** [21 September 2022 19:45 UTC](https://discourse.nodered.org/t/error-installing-node-red-modbus-snap-v3-0-2-on-ubuntu-core-16/68016/4 "2022-09-21T19:45:49Z")

</div>

I don't know about Ubuntu core, but I would start by trying the recommended Debian/Ubuntu/pi script. [Running on Raspberry Pi : Node-RED](https://nodered.org/docs/getting-started/raspberrypi)

---

<div class="post-metadata">

**Author:** ![Kaij3](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kaij3/32/60268_2.png) [@Kaij3](https://discourse.nodered.org/u/Kaij3)\
**Post date:** [22 September 2022 01:15 UTC](https://discourse.nodered.org/t/error-installing-node-red-modbus-snap-v3-0-2-on-ubuntu-core-16/68016/5 "2022-09-22T01:15:04Z")

</div>

@Colin thanks for the reply!

I have already tried this method but unfortunately, i am not able to install the modbus Palette.😅

---

<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 September 2022 07:20 UTC](https://discourse.nodered.org/t/error-installing-node-red-modbus-snap-v3-0-2-on-ubuntu-core-16/68016/6 "2022-09-22T07:20:45Z")

</div>

Do you mean you installed using the script (not the snap) and even then could not install the modbus node?  
If so then go into your .node-red folder, remove the node\_modules folder and run  
`npm install`  
If that fails then post the output here (copy/paste rather than screenshot please). If it succeeds then run  
`npm install node-red-contrib-modbus`

---

<div class="post-metadata">

**Author:** ![Kaij3](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kaij3/32/60268_2.png) [@Kaij3](https://discourse.nodered.org/u/Kaij3)\
**Post date:** [23 September 2022 01:38 UTC](https://discourse.nodered.org/t/error-installing-node-red-modbus-snap-v3-0-2-on-ubuntu-core-16/68016/7 "2022-09-23T01:38:36Z")

</div>

@Colin

I will try that method, Thank you very much!

---

<div class="post-metadata">

**Author:** ![Kaij3](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kaij3/32/60268_2.png) [@Kaij3](https://discourse.nodered.org/u/Kaij3)\
**Post date:** [23 September 2022 05:40 UTC](https://discourse.nodered.org/t/error-installing-node-red-modbus-snap-v3-0-2-on-ubuntu-core-16/68016/8 "2022-09-23T05:40:50Z")

</div>

@Colin

Hi, but I just realize that i can't use that command for the node-red snap, but i was able to access the node red modules , but however doing the same [Steps](https://github.com/dceejay/nodered.snap/blob/master/README.md) it did not allow me to install inside the node red modules file.

---

<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:** [23 September 2022 06:56 UTC](https://discourse.nodered.org/t/error-installing-node-red-modbus-snap-v3-0-2-on-ubuntu-core-16/68016/9 "2022-09-23T06:56:30Z")

</div>

Sorry, but that sentence does not make it clear what you have now tried that fails.

---

<div class="post-metadata">

**Author:** ![Kaij3](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kaij3/32/60268_2.png) [@Kaij3](https://discourse.nodered.org/u/Kaij3)\
**Post date:** [26 September 2022 06:27 UTC](https://discourse.nodered.org/t/error-installing-node-red-modbus-snap-v3-0-2-on-ubuntu-core-16/68016/10 "2022-09-26T06:27:47Z")

</div>

@Colin

Hi, sorry for the late reply,

I have already tried to install the Modbus palette, but i have gotten the error from the first post, so I went into Node-Red Snap and tried to access and remove the node\_modules folder from your suggestion, but however, it returned me with this error that most of them are read-only file system even though I tried to forcibly remove them.  
 ![error_readonly](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/8/b811286cf1ba00c07dcbd645495f8a70fdf4e8fa.jpeg)

---

<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:** [26 September 2022 06:43 UTC](https://discourse.nodered.org/t/error-installing-node-red-modbus-snap-v3-0-2-on-ubuntu-core-16/68016/11 "2022-09-26T06:43:10Z")

</div>

My suggestion was that you could uninstall the snap version and use the usual node red install script.

---

<div class="post-metadata">

**Author:** ![Kaij3](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kaij3/32/60268_2.png) [@Kaij3](https://discourse.nodered.org/u/Kaij3)\
**Post date:** [26 September 2022 07:32 UTC](https://discourse.nodered.org/t/error-installing-node-red-modbus-snap-v3-0-2-on-ubuntu-core-16/68016/12 "2022-09-26T07:32:45Z")

</div>

@Colin

Ohh, my bad, is there any method using the snap version? so that I am able to install the Modbus palette?

---

<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:** [26 September 2022 08:01 UTC](https://discourse.nodered.org/t/error-installing-node-red-modbus-snap-v3-0-2-on-ubuntu-core-16/68016/13 "2022-09-26T08:01:03Z")

</div>

> [@Kaij3](#):
>
> is there any method using the snap version? so that I am able to install the Modbus palette?

Few, if any, here use the snap version so it may be difficult to find a solution.

---

<div class="post-metadata">

**Author:** ![Kaij3](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kaij3/32/60268_2.png) [@Kaij3](https://discourse.nodered.org/u/Kaij3)\
**Post date:** [26 September 2022 08:04 UTC](https://discourse.nodered.org/t/error-installing-node-red-modbus-snap-v3-0-2-on-ubuntu-core-16/68016/14 "2022-09-26T08:04:04Z")

</div>

@Colin

i see, thanks for the replies and help! Many thanks!

---

<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:** [26 September 2022 10:15 UTC](https://discourse.nodered.org/t/error-installing-node-red-modbus-snap-v3-0-2-on-ubuntu-core-16/68016/15 "2022-09-26T10:15:48Z")

</div>

I think `snap remove ... ` will remove a snap - `snap --help` will show you options.

---

<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:** [25 November 2022 10:16 UTC](https://discourse.nodered.org/t/error-installing-node-red-modbus-snap-v3-0-2-on-ubuntu-core-16/68016/16 "2022-11-25T10:16:11Z")

</div>

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