【发布时间】:2019-02-04 09:06:07
【问题描述】:
当我尝试使用 npm 安装 Angular-cli 时,我得到了代码 ETIMEDOUT 的错误
我尝试删除代理(代理和 HTTP 代理),尝试以管理员模式运行 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
我尝试了什么并不重要,但每次都会出现相同的错误。需要帮助的人
【问题讨论】:
-
这可能是网络问题。我也因连接不良而出现此错误。
-
可能是网络问题。尝试“npm 缓存验证”并连接高带宽互联网连接,然后执行 npm 安装
-
是的,我想是的,我已连接到高带宽互联网连接,但可能有什么东西阻止了数据传输。有什么办法强制吗?
-
C:\Users\123\AppData\Roaming\npm-cache_logs\2019-02-04T09_54_06_689Z-debug.log 打开此文件并检查访问被拒绝或任何将在此处列出的网络问题。
-
显然这不是网络问题。这是一个角度问题。看来angular写的很烂。
标签: angular npm command-line-interface failed-installation