Dear Community User! We are updating our platform to a new system.
Read more: Important information on the platform change.

cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Cannot add module on node-red

Cannot add module on node-red

KevinD
Established Member

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
2 REPLIES 2

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

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

Thanks,

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist