Unless you were doing an install to a device in your friends house, you would still be using the same DNS because it would be the one the server is using. Check what DNS server your Node-RED server is getting and try changing to something different.
Also, what version of node.js/npm and node-red are you using? And what platform are you running Node-RED on?
I have the same situation. Even worse - i\ll not be able to change proxy settings as i'm sitting on the offshore installation and company will change no settings for me... Cyber security, IT policy and similar bulls*it... Is there a way to download *.tgz archive for the package (node) i need to install? I saw option "upload tgz file" in Node-RED UI -> Palette Manager -> Install tab. There is small button there.
I need nodes for SVG and Drawsvg to learn how to customize Node-RED Dashboard. I have time after workhours and i'm blocked as i can't install nodes from internet:(:(:(
One way to solve this problem is to keep a parallel system with the same OS, nodejs version and node-red version on a machine that does have network access. Install the nodes you need there and copy the node_modules folder, package.json and package-lock.json across to the non-networked machine. Restart node-red and the additional nodes will be available.
You need to understand a bit about how node.js packages work. With the exception of modules that have a C++ library that must be compiled (e.g. something requiring a serial connection), you normally can get away with unpacking the archive to the right folder under ~/.node-red/node_modules. If you have a look at what npm does with things, you should quickly get the idea. There is a simple test package called aaa that I often use for this. Just install it on a machine using npm and then try to reproduce the same thing by manually downloading it from GitHub.
the thing is i can install no thing using nmp due to network settings at work (cyber security bullshit) - and i'm living here on the platform, going home in one month or so. That is why i am trying to find alternative way. But then why we have option "upload tgz module file" in NodeRED UI palette manager? What for is it, then?
The only real way that I have found to work is to rebuild a node myself by forking it locally and then setting the package.json to have a bundledDependncies section (see package.json | npm Docs) and running npm install locally before running npm pack... that will then include all the dependencies into the tgz file that can then be installed... but if the OP is offline from the internet then that will be tricky.