Showing results for 
Search instead for 
Did you mean: 

Cannot add module on node-red

Cannot add module on node-red

Established Member


I know this topic has been discussed several times on the forum.
I tried to apply everything I could find and I can't add a library via manage palette on node-red.

I always have the following message:

2022-11-28T21:33:02.331Z Install : node-red-node-mysql 1.0.3


2022-11-28T21:32:59.339npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-node-mysql@1.0.3
2022-11-28T21:33:02.229Z [err] (node:3169) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
2022-11-28T21:33:02.229Z [err] (Use `node --trace-warnings ...` to show where the warning was created)
2022-11-28T21:33:04.616Z [err] npm
2022-11-28T21:33:04.617Z [err]  
2022-11-28T21:33:04.618Z [err] ERR! code EHOSTUNREACH
2022-11-28T21:33:04.619Z [err] npm
2022-11-28T21:33:04.619Z [err]  ERR!
2022-11-28T21:33:04.619Z [err]  errno
2022-11-28T21:33:04.619Z [err]  EHOSTUNREACH
2022-11-28T21:33:04.676Z [err] npm 
2022-11-28T21:33:04.676Z [err] ERR! request to failed, reason: connect EHOSTUNREACH
2022-11-28T21:33:04.689Z [err] 
2022-11-28T21:33:04.689Z [err] npm ERR! A complete log of this run can be found in:
2022-11-28T21:33:04.689Z [err] npm ERR!
2022-11-28T21:33:04.690Z [err]      /root/snap/ctrlx-node-red/470/.npm/_logs/2022-11-28T21_33_04_679Z-debug.log
2022-11-28T21:33:04.716Z rc=1
I configured the DHCP in the connections and I adjusted the date and time parameters.
Can you help me?

Community Moderator
Community Moderator

As you said solution was discussed several times before: You need to connect your ctrlX CORE to the internet.

Your settings look a little bit strange to me as you are using as a gateway but your internet router seems to be connected in the 10.141.29.x subnet. If you are connected to a router with DHCP functionality that provides free internet leave the DNS and gateway open as you will get the correct one automatically. See this post.

If you are connected behind a corporate proxy (in a company network) and the router will not grant you free internet you will have to use a proxy to get it via your PC. See this blog post for further information.

See this post for a ctrlX COREvirtual.

Established Member

I had done things wrong
I was connected to the router in wifi for internet on my pc and I used the same router with an ethernet cable connected to my pc and another connected to ctrlX to access the ctrlX.

I have disabled wifi on my pc and enabled windows dhcp.

I also removed the default gateway and the DNS for the ctrlX as you suggested.

I can install modules on node-red now.