【问题标题】:npm WARN package.json for latest version最新版本的 npm WARN package.json
【发布时间】:2019-09-13 19:27:45
【问题描述】:

我们已经在使用最新版本的 angular ("@angular/core": "~8.2.5")。

但是在安装时,npm 会给出一些关于模块版本的警告。 请看上面的控制台结果:

npm WARN angular-pell@0.1.0 requires peer of @angular/common@^5.2.5 but none is installed. You must install peer dependencies yourself.
npm WARN angular-pell@0.1.0 reuqires peer of @angular/core@^5.2.5 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/core@2.4.10 requires peer of rxjs@^5.0.1 but none is installed. You must install peer dependencies yourself.

npm 警告是怎么回事?

为什么 npm 会提供一些警告?

【问题讨论】:

    标签: node.js angular npm


    【解决方案1】:

    尝试运行 npm 审计:

    npm audit fix
    

    【讨论】:

      猜你喜欢
      • 2017-01-23
      • 1970-01-01
      • 2018-12-28
      • 2013-05-25
      • 2021-09-30
      • 2017-02-05
      • 2022-06-10
      • 2019-03-18
      • 2021-10-03
      相关资源
      最近更新 更多