【问题标题】:npm UNMET PEER DEPENDENCY warnings when installing angular2安装 angular2 时出现 npm UNMET PEER DEPENDENCY 警告
【发布时间】:2016-05-24 15:12:48
【问题描述】:

我在安装 angular2 时遇到了奇怪的 UNMET PEER DEPENDENCY 警告。我已经尝试过缓存清理并安装了所有依赖项,如下所示,但仍然收到警告:

谁能帮忙?

【问题讨论】:

    标签: npm warnings


    【解决方案1】:

    你能重写你的 package.json 吗,就像我收到的警告一样,重写 package.json 解决了它:

    npm WARN angular2@2.0.0-beta.17 requires a peer of es6-shim@^0.35.0 but none was installed.
    

    package.json: "es6-shim": "^0.35.0",

    npm WARN angular2@2.0.0-beta.17 requires a peer of reflect-metadata@0.1.2
    

    package.json: "反射元数据": "0.1.2",

    npm WARN angular2@2.0.0-beta.17 requires a peer of rxjs@5.0.0beta.6
    

    package.json: "rxjs": "5.0.0beta.6",

    npm WARN angular2@2.0.0-beta.17 requires a peer of zone.js@0.6.12
    

    package.json: "zone.js": "0.6.12",

    Delete node_modules directory
    
    npm install
    

    【讨论】:

      猜你喜欢
      • 2016-06-14
      • 1970-01-01
      • 2017-10-14
      • 2018-06-13
      • 2017-01-05
      • 2022-11-16
      • 2016-09-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多