【问题标题】:Couldn't Install angular cli with npm无法使用 npm 安装 angular cli
【发布时间】:2017-12-05 12:21:08
【问题描述】:

我使用的是 8.9.2 版本的 node js,当我尝试安装 angular cli 时

使用此命令:npm -g install @angular/cli

它显示了一些 npm 错误

这是我在 cmd 提示屏幕上看到的:

npm ERR! Unexpected end of JSON input while parsing near '...-2.3.0.tgz"},"engines'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\haris_000\AppData\Roaming\npm-cache\_logs\2017-12-05T12_19_58_814Z-debug.log

【问题讨论】:

  • 我也遇到了同样的问题。你是怎么解决的?

标签: node.js npm angular-cli npm-install


【解决方案1】:

我猜安装 Angular 的命令是: npm install -g @angular/cli

【讨论】:

    猜你喜欢
    • 2018-05-20
    • 2023-03-28
    • 1970-01-01
    • 1970-01-01
    • 2018-06-13
    • 2015-11-27
    • 2018-07-13
    • 2018-07-02
    • 1970-01-01
    相关资源
    最近更新 更多