I'm getting the error shown below while trying to execute 'npm install' command.
Error: tunneling socket could not be established, cause=connect ECONNREFUSED 10.232.207.137:8080
What do I miss?
I'm getting the error shown below while trying to execute 'npm install' command.
Error: tunneling socket could not be established, cause=connect ECONNREFUSED 10.232.207.137:8080
What do I miss?
After looking at all of the answers, the one that helped me was providing proxy values in-line with the install command. One of my frustrations was adding the domain to my username. This is not needed. I used the following example to install a specific version of Angular:
I spent days trying all the above answers and ensuring I had the proxy and other settings in my node config correct. All were and it was still failing. I was/am using a Windows 10 machine and behind a corp proxy.
For some legacy reason, I had
HTTP_PROXY
andHTTPS_PROXY
set in my user environment variables which overrides the node ones (unknown to me), so correcting these (theHTTPS_PROXY
one was set to https, so I changed to HTTP) fixed the problem for me.This is the problem when we can have the Same variables in Multiple places, you don't know what one is being used!
according to this it's proxy isssues, try to disable ssl and set registry to http instead of https . hope it helps!
If in case you are using ubuntu trusty 14.0 then search for Network and select Network Proxy and make it none. Now proxy may still be set in system environment variables. check
you may get output as
unset these environment variable as:
and in this way unset all. Now run npm install ensuring user must have permission to make node_modules folder where you are installing module.
In my case helped delete .npmrc config file
I know this is way too late but if someone has a similar issue in the future and you are sure you have
no proxy set
but you have an environment variable called http_proxy. Please delete it and try again. I had set a proxy for Fiddler.