【问题标题】:Getting error with ng new command in Angular CLI [duplicate]在 Angular CLI 中使用 ng new 命令出错 [重复]
【发布时间】:2020-01-03 08:31:19
【问题描述】:

当我运行 ng new myproject 时,出现以下错误。

“在...附近解析时意外结束 JSON 错误”:{“完整性”:“sha51 '”

我正在使用 MicroSoft Surface 6 Pro。

【问题讨论】:

  • 您可以尝试再次卸载并安装@angular/cli 包吗?

标签: angular


【解决方案1】:

这样做

npm cache clean --force

然后运行

npm install -g @angular/cli@latest

【讨论】:

  • 很高兴它有效,你能接受它有答案吗
猜你喜欢
  • 2019-03-25
  • 1970-01-01
  • 2021-05-22
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-10-02
  • 2018-12-01
相关资源
最近更新 更多