Error 'tunneling socket' while executing n

2019-01-13 07:44发布

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?

screenshot

16条回答
2楼-- · 2019-01-13 08:34

I lost a day trying to make this work. Worked with this steps.

I opened Fiddler and checked the option Rules > Automatically Autenticate.

After, search for file .npmrc, usually in c:\users\ and used it as configuration:

registry=https://registry.npmjs.org/
proxy=http://username:password@127.0.0.1:8888
https-proxy=http://username:password@127.0.0.1:8888
http-proxy=http://username:password@127.0.0.1:8888
strict-ssl=false
ca=null

Hope help someone!

查看更多
3楼-- · 2019-01-13 08:35

Following commands may solve your issue:

npm config set proxy false
npm cache clean

It solved my same issue.

查看更多
The star\"
4楼-- · 2019-01-13 08:35

Removing the proxy settings resolved the issue:

If you are no using any proxy:

npm config rm proxy
npm config rm https-proxy

If you are using Proxy:

npm config set proxy http://proxyhostname:proxyport
npm config set https-proxy http://proxyhostname:proxyport

Hopefully this will solve your problem :)

查看更多
Fickle 薄情
5楼-- · 2019-01-13 08:36

I have faced similar issue and none of the above solution worked as I was in protected network.

To overcome this, I have installed "Fiddler" tool from Telerik, after installation start Fiddler and start installation of Protractor again.

Hope this will resolve your issue.

Thanks.

查看更多
登录 后发表回答