Cannot add module on node-red

Hello,

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 https://registry.npmjs.org/node-red-node-mysql failed, reason: connect EHOSTUNREACH 104.16.17.35:443
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?
 
Thanks,
 
Kevin
Best reply by CodeShepherd

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 192.168.1.1 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.

View original
Date&Time.PNG
19.43KB
IPV4.PNG
23.82KB
ETH0.PNG
18.19KB
EventLog.PNG
85.26KB
2 replies