当我尝试使用npm安装Angular-cli时,出现了错误代码为ETIMEDOUT的错误。
我尝试删除代理(proxy和HTTP-proxy),尝试以管理员模式运行cmd,并更改了nodejs目标路径。
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/@angular%2fcli failed, reason: connect ETIMEDOUT 104.16.22.35: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\123\AppData\Roaming\npm-cache\_logs\2019-02-04T09_5I_06_689Z-debug.log
无论我尝试什么,每次都出现相同的错误。需要大家的帮助。