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

npm proxy settings for Node-RED App

npm proxy settings for Node-RED App

joyuki
New Poster

I'd like to know how to add new nodes in Node-RED App in a proxy environment.
When I tried to add a new node from the Palette Manger of Node-RED App GUI, I got an error like this;
-----------------------------------------------------------
2022-03-09T08:51:14.694Z 追加 : node-red-contrib-onvif 1.0.3

2022-03-09T08:51:14.562Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-onvif@1.0.3
2022-03-09T08:51:24.541Z [err] npm ERR!
2022-03-09T08:51:24.544Z [err] code E407
2022-03-09T08:51:24.592Z [err] npm ERR!
2022-03-09T08:51:24.600Z [err] 407 Proxy Authentication Required - GET https://registry.npmjs.org/node-red-contrib-onvif
2022-03-09T08:51:24.638Z [err]
2022-03-09T08:51:24.640Z [err] npm ERR! A complete log of this run can be found in:
2022-03-09T08:51:24.640Z [err] npm ERR! /root/snap/ctrlx-node-red/328/.npm/_logs/2022-03-09T08_51_24_605Z-debug.log
2022-03-09T08:51:24.699Z rc=1
-----------------------------------------------------------

There is a proxy error, so I think proxy setting is needed for npm, but I don't know how to do it.
I've already configured ctrlX core proxy setting from WebUI, so I can send a HTTP request to the internet or get a list of additional candidate nodes from the internet.
It seems that npm requires a separate proxy setting.

4 REPLIES 4

CodeShepherd
Community Moderator
Community Moderator

Please have a look to this thread.

In short: Your ctrlX CORE needs access to the internet. It is not enough to have internet connection at your host PC.

Hi, 

Thank you for your reply!

I'm a colleague of joyuki, and I read the thread and we will try them.

However, the error joyuki posted on this thread has been happen on CtrlX Core virtual environment on a Windows PC, and the PC is connected to the internet behind a proxy. We don't try on actual CtrlX Core. 

As joyuki mentiond proxy settings of CtrlX virtual itself has been done on a WEB Portal, but the error is happend, therefore we assume it is needed that proxy settings specific for npm.

 

Thanks!

CodeShepherd
Community Moderator
Community Moderator

In this how to there is described how to connect a ctrlX CORE virtual to the internet.

Sorry for taking very long time to reply,

We tried to install the node via local targz and finally it works!

However we configured proxy settings on the web portal but even now the npm proxy error happen.

Anyway, what we wanted has been completed, so this thread can be closed.

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