# Installation of modbus

**URL:** <https://discourse.nodered.org/t/installation-of-modbus/55009>\
**Category:** General\
**Created:** [10 December 2021 12:55 UTC](https://discourse.nodered.org/t/installation-of-modbus/55009 "2021-12-10T12:55:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pfe](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@pfe](https://discourse.nodered.org/u/pfe)\
**Post date:** [10 December 2021 12:55 UTC](https://discourse.nodered.org/t/installation-of-modbus/55009/1 "2021-12-10T12:55:44Z")

</div>

hello forum  
I have problem to install the node-red contrib modbus . Is there someone else who has the same problems ? How to solve ? my nodered is updated. I'm suspecting a problem with the serial link module..  
Any advise ? Thx

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [10 December 2021 13:04 UTC](https://discourse.nodered.org/t/installation-of-modbus/55009/2 "2021-12-10T13:04:17Z")

</div>

It would be helpful if you explained what the problem is.

---

<div class="post-metadata">

**Author:** ![pfe](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@pfe](https://discourse.nodered.org/u/pfe)\
**Post date:** [10 December 2021 13:36 UTC](https://discourse.nodered.org/t/installation-of-modbus/55009/3 "2021-12-10T13:36:48Z")

</div>

Hello

I’m getting thsi in the logs:

```auto
10 Dec 14:35:03 - [warn] ------------------------------------------
10 Dec 14:35:03 - [warn] gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: self signed certificate in certificate chain
gyp ERR! stack at TLSSocket.onConnectSecure (_tls_wrap.js:1501:34)
gyp ERR! stack at TLSSocket.emit (events.js:315:20)
gyp ERR! stack at TLSSocket._finishInit (_tls_wrap.js:936:8)
gyp ERR! stack at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:710:12)
gyp ERR! System Windows_NT 10.0.19043
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\i00204714\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "build"
gyp ERR! cwd C:\Users\i00204714\.node-red\node_modules\fs-ext
gyp ERR! node -v v12.18.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
prebuild-install WARN install self signed certificate in certificate chain
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: self signed certificate in certificate chain
gyp ERR! stack at TLSSocket.onConnectSecure (_tls_wrap.js:1501:34)
gyp ERR! stack at TLSSocket.emit (events.js:315:20)
gyp ERR! stack at TLSSocket._finishInit (_tls_wrap.js:936:8)
gyp ERR! stack at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:710:12)
gyp ERR! System Windows_NT 10.0.19043
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\i00204714\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\i00204714\.node-red\node_modules\@serialport\bindings
gyp ERR! node -v v12.18.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [fsevents@2.3.2](mailto:fsevents@2.3.2) (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [fsevents@2.3.2](mailto:fsevents@2.3.2): wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [fs-ext@0.5.0](mailto:fs-ext@0.5.0) (node_modules\fs-ext):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [fs-ext@0.5.0](mailto:fs-ext@0.5.0) install: `node-gyp configure build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @serialport/bindings@9.2.8 install: `prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @serialport/bindings@9.2.8 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\i00204714\AppData\Roaming\npm-cache\_logs\2021-12-10T13_35_03_230Z-debug.log

10 Dec 14:35:03 - [warn] ------------------------------------------

Error: Install failed

at C:\Users\i00204714\AppData\Roaming\npm\node_modules\node-red\node_modules\@node-red\registry\lib\installer.js:285:25

at processTicksAndRejections (internal/process/task_queues.js:97:5)

10 Dec 14:35:03 - [error] Error: Install failed

```

Best regards I Freundliche Grüsse

Patrick Frey

---

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [10 December 2021 14:49 UTC](https://discourse.nodered.org/t/installation-of-modbus/55009/4 "2021-12-10T14:49:37Z")

</div>

Are you behind a company proxy network or a firewall ?

```auto
gyp ERR! stack Error: self signed certificate in certificate chain
gyp ERR! stack at TLSSocket.onConnectSecure (_tls_wrap.js:1501:34)

```

Dont know much about networking but i was reading about these errors on [node-gyp github](https://github.com/nodejs/node-gyp/issues/695)

People there have been suggesting to run from the command prompt

`Set NODE_TLS_REJECT_UNAUTHORIZED=0`  
or  
`npm config set strict-ssl false`

then try to re-install the node

ps. dont know the implications in security for making those changes

---

<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:** [8 February 2022 14:49 UTC](https://discourse.nodered.org/t/installation-of-modbus/55009/5 "2022-02-08T14:49:40Z")

</div>

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