Angular 2 - 无效的外部依赖性要求

时间:2016-10-17 15:42:42

标签: angular compiler-errors ng2-bootstrap angular-seed

在我的本地环境中它仍然有效。但是继续集成服务器失败了。 我认为这是在安装ng2-bootstrap之后发生的。

    17-Oct-2016 18:33:57 npm ERR! peerinvalid The package @angular/compiler@2.1.0 does not satisfy its siblings' peerDependencies requirements!
    17-Oct-2016 18:33:57 npm ERR! peerinvalid Peer @angular/platform-browser-dynamic@2.1.0 wants @angular/compiler@2.1.0
    17-Oct-2016 18:33:57 npm ERR! peerinvalid Peer ng2-bootstrap@1.1.14 wants @angular/compiler@^2.0.0
    17-Oct-2016 18:33:57 npm ERR! peerinvalid Peer codelyzer@1.0.0-beta.0 wants @angular/compiler@^2.0.0
    17-Oct-2016 18:33:57 npm ERR! peerinvalid Peer @angular/compiler-cli@0.6.4 wants @angular/compiler@2.0.2
    17-Oct-2016 18:33:57 npm ERR! peerinvalid Peer @angular/platform-server@2.1.0 wants @angular/compiler@2.1.0

这是我的package.json

"dependencies": {
    "@angular/common": "^2.0.1",
    "@angular/compiler": "^2.0.1",
    "@angular/core": "^2.0.1",
    "@angular/forms": "^2.0.1",
    "@angular/http": "^2.0.1",
    "@angular/platform-browser": "^2.0.1",
    "@angular/platform-browser-dynamic": "^2.0.1",
    "@angular/router": "^3.0.1",
    "core-js": "^2.4.1",
    "es-module-loader": "^1.0.0",
    "moment": "^2.15.1",
    "ng2-bootstrap": "^1.1.13",
    "reflect-metadata": "^0.1.8",
    "rxjs": "5.0.0-beta.12",
    "systemjs": "0.19.38",
    "zone.js": "0.6.25"   
  }

请帮我调试和解决依赖关系。

UPD。在具有空angular2-seed项目的本地文件夹和上面提到的依赖项中:

enter image description here

0 个答案:

没有答案