【问题标题】:Couldn't Install angular cli with npm无法使用 npm 安装 angular cli
【发布时间】:2023-11-11 09:44:02
【问题描述】:

我使用的是 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

【讨论】: