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
It would be helpful if you explained what the problem is.
Hello
I’m getting thsi in the logs:
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
Are you behind a company proxy network or a firewall ?
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
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
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.