Angularjs 如何使用npm安装绕过隧道套接字错误?

Angularjs 如何使用npm安装绕过隧道套接字错误?,angularjs,node.js,windows,npm,Angularjs,Node.js,Windows,Npm,我试图在angular项目中运行npm install,但导致错误: error network tunneling socket could not be established, cause=read ECONNRESET error network This is most likely not a problem with npm itself error network and is related to network connectivity. error network In m

我试图在angular项目中运行npm install,但导致错误:

error network tunneling socket could not be established, cause=read ECONNRESET
error network This is most likely not a problem with npm itself
error network and is related to network connectivity.
error network In most cases you are behind a proxy or have bad network settings.
我尝试如下设置npm代理:

npm config set proxy http://myproxy
npm config set https-proxy https://myproxy
npm config set registry "http://registry.npmjs.org/"
我缺少什么或者如何运行npm安装?

在npm中设置https代理时,不应使用“https”而应使用“http”作为协议。就这样

>npm config set https-proxy http://myproxy
可能重复的