# Rs485 serialport plug in

**URL:** <https://discourse.nodered.org/t/rs485-serialport-plug-in/14388>\
**Category:** General\
**Created:** [16 August 2019 10:54 UTC](https://discourse.nodered.org/t/rs485-serialport-plug-in/14388 "2019-08-16T10:54:35Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iliyas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iliyas/32/19045_2.png) [@Iliyas](https://discourse.nodered.org/u/Iliyas)\
**Post date:** [16 August 2019 10:54 UTC](https://discourse.nodered.org/t/rs485-serialport-plug-in/14388/1 "2019-08-16T10:54:35Z")

</div>

Hello Myself Iliyas,  
I have been getting issue on installing rs485 serial port plugin please help as soon as possible

---

<div class="post-metadata">

**Author:** ![Iliyas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iliyas/32/19045_2.png) [@Iliyas](https://discourse.nodered.org/u/Iliyas)\
**Post date:** [16 August 2019 11:06 UTC](https://discourse.nodered.org/t/rs485-serialport-plug-in/14388/2 "2019-08-16T11:06:40Z")

</div>

How to install in Dell gateway 5000

---

<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:** [16 August 2019 11:17 UTC](https://discourse.nodered.org/t/rs485-serialport-plug-in/14388/3 "2019-08-16T11:17:56Z")

</div>

What have you tried and what issue have you encountered? There is no point us advising you unless we know what does not work.

---

<div class="post-metadata">

**Author:** ![Iliyas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iliyas/32/19045_2.png) [@Iliyas](https://discourse.nodered.org/u/Iliyas)\
**Post date:** [16 August 2019 11:19 UTC](https://discourse.nodered.org/t/rs485-serialport-plug-in/14388/4 "2019-08-16T11:19:41Z")

</div>

I am installing rs485 serialport plugin but its not installing giving some errors

---

<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:** [16 August 2019 11:24 UTC](https://discourse.nodered.org/t/rs485-serialport-plug-in/14388/5 "2019-08-16T11:24:59Z")

</div>

To ask basically the same questions again:  
What plugin are you trying to install (exactly, not just descriptive words)?  
How are you trying to install it - the command or sequence that you are using?  
What errors? Copy/Paste here the errors you are seeing.

---

<div class="post-metadata">

**Author:** ![Iliyas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iliyas/32/19045_2.png) [@Iliyas](https://discourse.nodered.org/u/Iliyas)\
**Post date:** [16 August 2019 11:26 UTC](https://discourse.nodered.org/t/rs485-serialport-plug-in/14388/6 "2019-08-16T11:26:41Z")

</div>

i am installing this  
npm i node-red-node-serialport-rs485

---

<div class="post-metadata">

**Author:** ![Iliyas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iliyas/32/19045_2.png) [@Iliyas](https://discourse.nodered.org/u/Iliyas)\
**Post date:** [16 August 2019 11:28 UTC](https://discourse.nodered.org/t/rs485-serialport-plug-in/14388/7 "2019-08-16T11:28:58Z")

</div>

i am getting this error  
ERR!  
2019-08-16T10:56:56.900Z [err] node -v  
2019-08-16T10:56:56.900Z [err] v12.8.1  
2019-08-16T10:56:56.900Z [err] gyp ERR!  
2019-08-16T10:56:56.900Z [err] node-gyp -v  
2019-08-16T10:56:56.901Z [err] v5.0.3  
2019-08-16T10:56:56.901Z [err] gyp  
2019-08-16T10:56:56.901Z [err] ERR! not ok  
2019-08-16T10:56:56.901Z [err]  
2019-08-16T10:56:56.918Z [err] node-pre-gyp ERR! build error  
2019-08-16T10:56:56.918Z [err] node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node\_modules/npm/node\_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/root/.node-red/node\_modules/node-red-contrib-serialport-rs485/node\_modules/serialport/build/Release/serialport.node --module\_name=serialport --module\_path=/root/.node-red/node\_modules/node-red-contrib-serialport-rs485/node\_modules/serialport/build/Release' (1)  
2019-08-16T10:56:56.918Z [err] node-pre-gyp ERR! stack at ChildProcess. (/root/.node-red/node\_modules/node-red-contrib-serialport-rs485/node\_modules/serialport/node\_modules/node-pre-gyp/lib/util/compile.js:83:29)  
2019-08-16T10:56:56.918Z [err] node-pre-gyp ERR! stack at ChildProcess.emit (events.js:203:13)  
2019-08-16T10:56:56.918Z [err] node-pre-gyp ERR! stack at maybeClose (internal/child\_process.js:1021:16)  
2019-08-16T10:56:56.918Z [err] node-pre-gyp ERR! stack at Process.ChildProcess.\_handle.onexit (internal/child\_process.js:283:5)  
2019-08-16T10:56:56.918Z [err] node-pre-gyp  
2019-08-16T10:56:56.919Z [err]  
2019-08-16T10:56:56.919Z [err] ERR!  
2019-08-16T10:56:56.919Z [err]  
2019-08-16T10:56:56.920Z [err] System  
2019-08-16T10:56:56.920Z [err] Linux 4.4.0-103-generic  
2019-08-16T10:56:56.921Z [err] node-pre-gyp  
2019-08-16T10:56:56.921Z [err]  
2019-08-16T10:56:56.921Z [err] ERR!  
2019-08-16T10:56:56.921Z [err]  
2019-08-16T10:56:56.922Z [err] command  
2019-08-16T10:56:56.922Z [err] "/usr/bin/node" "/root/.node-red/node\_modules/node-red-contrib-serialport-rs485/node\_modules/serialport/node\_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"  
2019-08-16T10:56:56.923Z [err] node-pre-gyp  
2019-08-16T10:56:56.923Z [err]  
2019-08-16T10:56:56.923Z [err] ERR!  
2019-08-16T10:56:56.924Z [err]  
2019-08-16T10:56:56.924Z [err] cwd  
2019-08-16T10:56:56.924Z [err] /root/.node-red/node\_modules/node-red-contrib-serialport-rs485/node\_modules/serialport  
2019-08-16T10:56:56.925Z [err] node-pre-gyp  
2019-08-16T10:56:56.925Z [err]  
2019-08-16T10:56:56.925Z [err] ERR!  
2019-08-16T10:56:56.925Z [err]  
2019-08-16T10:56:56.926Z [err] node -v v12.8.1  
2019-08-16T10:56:56.926Z [err] node-pre-gyp ERR! node-pre-gyp -v v0.6.32  
2019-08-16T10:56:56.927Z [err] node-pre-gyp  
2019-08-16T10:56:56.927Z [err]  
2019-08-16T10:56:56.927Z [err] ERR!  
2019-08-16T10:56:56.928Z [err]  
2019-08-16T10:56:56.930Z [err] not ok  
2019-08-16T10:56:56.930Z [out] Failed to execute '/usr/bin/node /usr/lib/node\_modules/npm/node\_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/root/.node-red/node\_modules/node-red-contrib-serialport-rs485/node\_modules/serialport/build/Release/serialport.node --module\_name=serialport --module\_path=/root/.node-red/node\_modules/node-red-contrib-serialport-rs485/node\_modules/serialport/build/Release' (1)  
2019-08-16T10:56:57.083Z [out] serialport.target.mk:111: recipe for target 'Release/obj.target/serialport/src/serialport.o' failed  
2019-08-16T10:56:57.083Z [out] make: Leaving directory '/root/.node-red/node\_modules/node-red-contrib-serialport-rs485/node\_modules/serialport/build'  
2019-08-16T10:56:57.083Z [err] make: \*\*\* [Release/obj.target/serialport/src/serialport.o] Error 1  
2019-08-16T10:56:57.088Z [err] gyp  
2019-08-16T10:56:57.091Z [err]  
2019-08-16T10:56:57.091Z [err] ERR!  
2019-08-16T10:56:57.091Z [err] build error  
2019-08-16T10:56:57.093Z [err] gyp  
2019-08-16T10:56:57.093Z [err] ERR! stack  
2019-08-16T10:56:57.093Z [err] Error: `make` failed with exit code: 2  
2019-08-16T10:56:57.093Z [err] gyp  
2019-08-16T10:56:57.093Z [err] ERR!  
2019-08-16T10:56:57.094Z [err] stack at ChildProcess.onExit (/usr/lib/node\_modules/npm/node\_modules/node-gyp/lib/build.js:196:23)  
2019-08-16T10:56:57.094Z [err] gyp  
2019-08-16T10:56:57.094Z [err]  
2019-08-16T10:56:57.094Z [err] ERR!  
2019-08-16T10:56:57.094Z [err] stack at ChildProcess.emit (events.js:203:13)  
2019-08-16T10:56:57.094Z [err] gyp ERR!  
2019-08-16T10:56:57.094Z [err] stack  
2019-08-16T10:56:57.094Z [err] at Process.ChildProcess.\_handle.onexit (internal/child\_process.js:272:12)  
2019-08-16T10:56:57.095Z [err] gyp  
2019-08-16T10:56:57.095Z [err] ERR!

---

<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:** [16 August 2019 11:29 UTC](https://discourse.nodered.org/t/rs485-serialport-plug-in/14388/8 "2019-08-16T11:29:54Z")

</div>

What do you see after that?

---

<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:** [16 August 2019 11:31 UTC](https://discourse.nodered.org/t/rs485-serialport-plug-in/14388/9 "2019-08-16T11:31:13Z")

</div>

In general we don't fully support node12 yet - Can you revert to node 10 LTS ?

---

<div class="post-metadata">

**Author:** ![Iliyas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iliyas/32/19045_2.png) [@Iliyas](https://discourse.nodered.org/u/Iliyas)\
**Post date:** [16 August 2019 11:31 UTC](https://discourse.nodered.org/t/rs485-serialport-plug-in/14388/10 "2019-08-16T11:31:45Z")

</div>

I am installing it in Dell gateway 5000

---

<div class="post-metadata">

**Author:** ![Iliyas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iliyas/32/19045_2.png) [@Iliyas](https://discourse.nodered.org/u/Iliyas)\
**Post date:** [16 August 2019 11:33 UTC](https://discourse.nodered.org/t/rs485-serialport-plug-in/14388/11 "2019-08-16T11:33:01Z")

</div>

But its not installing now...how to remove the previous version and download 10 LTS version?

---

<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:** [16 August 2019 11:36 UTC](https://discourse.nodered.org/t/rs485-serialport-plug-in/14388/12 "2019-08-16T11:36:42Z")

</div>

That would depend on how you installed nodejs.

---

<div class="post-metadata">

**Author:** ![Iliyas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iliyas/32/19045_2.png) [@Iliyas](https://discourse.nodered.org/u/Iliyas)\
**Post date:** [16 August 2019 11:39 UTC](https://discourse.nodered.org/t/rs485-serialport-plug-in/14388/13 "2019-08-16T11:39:37Z")

</div>

I have tried in 10 LTS also but too it not installing

---

<div class="post-metadata">

**Author:** ![Iliyas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iliyas/32/19045_2.png) [@Iliyas](https://discourse.nodered.org/u/Iliyas)\
**Post date:** [16 August 2019 11:40 UTC](https://discourse.nodered.org/t/rs485-serialport-plug-in/14388/14 "2019-08-16T11:40:16Z")

</div>

Can you please tell how to install it properly?

---

<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:** [16 August 2019 11:42 UTC](https://discourse.nodered.org/t/rs485-serialport-plug-in/14388/15 "2019-08-16T11:42:00Z")

</div>

You need to know how you installed nodejs v12

If you know how you did that try the same method for v10

---

<div class="post-metadata">

**Author:** ![Iliyas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iliyas/32/19045_2.png) [@Iliyas](https://discourse.nodered.org/u/Iliyas)\
**Post date:** [16 August 2019 11:42 UTC](https://discourse.nodered.org/t/rs485-serialport-plug-in/14388/16 "2019-08-16T11:42:53Z")

</div>

I have tried the same method it has installed successfully but too I am getting the same erro

---

<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:** [16 August 2019 12:46 UTC](https://discourse.nodered.org/t/rs485-serialport-plug-in/14388/17 "2019-08-16T12:46:05Z")

</div>

You say you are trying to install node-red-node-serialport-rs485, but the error seems to be about node-red-contrib-serialport-rs485

The contrib node will not install for me either, it has not been updated for two years, possibly it is not compatible with node 10.x

**[Edit]** I see where the confusion has arisen. The npm page talks about node-red-node-serialport-rs485 but is actually about node-red-contrib-serialport-rs485. Unfortunately it does not seem to have a link to a gitub repository so I can't see how to submit an issue. The only solution I can see is to use a different node, if there is one.

---

<div class="post-metadata">

**Author:** ![Iliyas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iliyas/32/19045_2.png) [@Iliyas](https://discourse.nodered.org/u/Iliyas)\
**Post date:** [16 August 2019 13:26 UTC](https://discourse.nodered.org/t/rs485-serialport-plug-in/14388/18 "2019-08-16T13:26:15Z")

</div>

ok thanks bro

---

<div class="post-metadata">

**Author:** ![SANNICAP](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@SANNICAP](https://discourse.nodered.org/u/SANNICAP)\
**Post date:** [25 April 2023 13:52 UTC](https://discourse.nodered.org/t/rs485-serialport-plug-in/14388/19 "2023-04-25T13:52:31Z")

</div>

Hello. I had probably the same problem with this node. I have Weidmuller UC20-WL2000-IoT Controller with web Node-RED? ver.1.0.3. I'm trying to add a rs485 node to my flow, when I try to install "node-red-contrib-serialport-rs485", I get an error:

````auto
2023-04-25T13:47:43.975Z Install : node-red-contrib-serialport-rs485 0.0.6

2020-01-28T12:09:20.753Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-serialport-rs485@0.0.6
2020-01-28T12:09:33.654Z [err] npm ERR! code EAI_AGAIN
2020-01-28T12:09:33.654Z [err] npm ERR! errno EAI_AGAIN
2020-01-28T12:09:33.664Z [err] npm
2020-01-28T12:09:33.674Z [err] ERR! request to ```https://registry.npmjs.org/node-red-contrib-serialport-rs485```failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org registry.npmjs.org:443
2020-01-28T12:09:33.804Z [err] 
2020-01-28T12:09:33.804Z [err] npm ERR! A complete log of this run can be found in:
2020-01-28T12:09:33.804Z [err] npm ERR! /tmp/node-red/.npm/_logs/2020-01-28T12_09_33_679Z-debug.log
2020-01-28T12:09:33.833Z rc=1

````

May be you've been already find decision?

Regards, Alex.

---

<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 April 2023 15:51 UTC](https://discourse.nodered.org/t/rs485-serialport-plug-in/14388/20 "2023-04-26T15:51:59Z")

</div>

I am closing this old thread as you have also started a [new thread](https://discourse.nodered.org/t/plc-weidmuller-uc20-wl2000-iot-connecting-via-rs-485/77951) for it.

[Next page](https://discourse.nodered.org/t/rs485-serialport-plug-in/14388.md?page=2)
