Showing results for 
Search instead for 
Did you mean: 

npm proxy settings for Node-RED App

npm proxy settings for Node-RED App

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


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.


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.



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.