NPM安装在公司的网络设置后面

时间:2018-09-24 16:22:13

标签: node.js npm

我在公司VPN后面运行npm install,并且遇到以下错误:

request to http://registry.npmjs.org/yarn failed, reason: getaddrinfo 
EAI_AGAIN registry.npmjs.org:80
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to http://registry.npmjs.org/yarn failed, reason: 
connect ETIMEDOUT 104.17.19.33:443
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network 
settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\blah\AppData\Roaming\npm-cache\_logs\2018-09- 
24T14_21_25_097Z-debug.log

我尝试了以下方法,但都没有解决方法:

npm config delete http-proxy
npm config delete https-proxy

npm config rm proxy
npm config rm https-proxy

我无法安装任何软件包,不确定如何解决?


如何找到我的代理地址?

0 个答案:

没有答案