Appears to be a temporary DNS issue. Try running again. If it still doesn't work, maybe try restarting the device and trying again.
You might also want to check whether you are having other DNS issues. I had real problems when trying to use Google DNS, it would quite often fail for several seconds at a time.
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?
Can you link to the tgz file you are trying to install?
It can't be just any tgz you find - it needs to be the tgz file generated by npm pack - which is what it downloads under the covers when you run npm install.
But the next problem you'll have is that if the module has any dependencies on other modules provided by npm, you'll need to manually download and install them yourself.
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.