angular - CMD 中的 NPM 安装问题
问题描述
我正在尝试安装 CLI,出现以下错误。
>C:\WINDOWS\system32>npm install -g @angular/cli
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to http://registry.npmjs.org/@angular%2fcli failed, reason: connect ETIMEDOUT 104.16.20.35:80
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\fshaik.PROTECH\AppData\Roaming\npm-cache\_logs\2018-08-02T22_07_53_089Z-debug.log
请帮忙..
谢谢
解决方案
推荐阅读
- reactjs - 如何创建一个有限但由 api 调用扩展的“窗口”列表,并且行可以具有不同的高度?
- java - java.time.format.DateTimeParseException:无法在索引 2 处解析文本“13/11/2020”
- javascript - 对于具有对象项目的数组,如何将每个项目的子结构的属性提升/升级到项目的根级别?
- c# - 通过 C# 传递给 AngularJS 的本地 XML 文件下载不起作用
- c++ - 我还需要链接 -std=c++11 吗?
- python - (ValueError:协议消息 StringIntLabelMapItem 没有字段频率)
- unit-testing - 测试 dom 库中的 waitFor 未按预期运行
- r - openxlsx:: loadWorkbook / saveWorkbook 抛出错误并弄乱表格格式
- html - 为什么在选择选项中使用比较器时浏览器会生成一个空选项?
- c++ - 修复 readability-braces-around-statements.ShortStatementLines 时出现整洁的错误