【问题标题】:Run `npm audit fix` to fix them, or `npm audit` for details运行 `npm audit fix` 来修复它们,或运行 `npm audit` 了解详细信息
【发布时间】:2020-11-22 16:22:58
【问题描述】:

当我尝试编译项目时,得到:

found 2860 vulnerabilities (2122low, 19 moderate, 726 high)
run `npm audit fix` to fix them, or `npm audit` for details

这来自 Angular 项目中的 npm install 和 npm run ng build --prod。 我目前有一个

  • Angular CLI:9.1.1
  • 节点:12.16.2
  • 操作系统:win32 x64

我该如何解决这个问题? 我们可以简单地升级项目还是应该降级我的 Angular?

【问题讨论】:

    标签: npm installation audit fix-protocol


    【解决方案1】:

    您可以在项目内部的终端中运行npm audit fix。这应该可以解决您的问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-02
      • 2020-02-10
      • 1970-01-01
      • 2020-07-05
      • 1970-01-01
      相关资源
      最近更新 更多