【问题标题】:command npm install is not working and showing errors命令 npm install 不起作用并显示错误
【发布时间】:2020-03-06 07:37:15
【问题描述】:

进入 npm install 出现如下错误

终端显示的错误

我想设置我的 Angular 项目,但惨遭失败!!

enter image description here

【问题讨论】:

  • 尝试从 C 文件夹中更改文件夹位置,然后重试
  • Angular 安装程序正在尝试安装 web-animation-js,它不是 NPM 模块,而是托管在 GIT 上的模块。如果您没有安装 GIT,请尝试安装它,然后重试。这是关于这个模块的一个未解决的问题:github.com/angular/angular-cli/issues/14826
  • 请不要使用图片,而是将错误复制/粘贴到您的帖子中

标签: angular npm-install


【解决方案1】:

首先,试试

npm cache clean --force
npm install -g @angular/cli@latest

然后npm install

如果上述方法不起作用,请尝试以下解决方案

更新core-js到3以上版本。

npm install --save core-js@^3

然后npm install

【讨论】:

    猜你喜欢
    • 2016-12-19
    • 1970-01-01
    • 2017-02-20
    • 2014-04-07
    • 2017-04-29
    • 2021-08-10
    • 2014-08-30
    • 2020-01-15
    • 2015-06-18
    相关资源
    最近更新 更多