Meteor - rxjs@5.0.0-beta.11或rxjs@5.0.0-beta.6 UNMET DEPENDENCY

时间:2016-09-09 21:37:15

标签: node.js meteor angular npm

我对带有angular2的meteor项目有这个问题,如果我安装(使用meteor npm install)包rxjs5.0.0-beta.11 nam说:

@angular/router@3.0.0-alpha.8 requires a peer of rxjs@5.0.0-beta.6 but none was installed.

如果我安装了包rxjs@5.0.0-beta.6,那么nam说: "

npm WARN @angular/core@2.0.0-rc.6 requires a peer of rxjs@5.0.0-beta.11 but none was installed.
npm WARN angular2-google-maps@0.14.0 requires a peer of rxjs@5.0.0-beta.11 but none was installed.

"

问题的典型答案"狗追逐它的尾巴",如果我安装beta.11它需要beta.6并且如果我安装beta.6它的要求它's beta.11 这是我的package.json

{
  "name": "angular2-meteor-base",
  "private": true,
  "scripts": {
    "start": "meteor run",
    "test": "meteor test --driver-package practicalmeteor:mocha",
    "test:ci": "meteor test --once --driver-package dispatch:mocha-phantomjs"
  },
  "devDependencies": {
    "chai": "3.5.0",
    "chai-spies": "0.7.1"
  },
  "dependencies": {
    "@angular/common": "2.0.0-rc.6",
    "@angular/compiler": "2.0.0-rc.6",
    "@angular/core": "2.0.0-rc.6",
    "@angular/forms": "0.2.0",
    "@angular/platform-browser": "2.0.0-rc.6",
    "@angular/platform-browser-dynamic": "2.0.0-rc.6",
    "@angular/router": "3.0.0-alpha.8",
    "angular2-google-maps": "^0.14.0",
    "angular2-meteor": "0.6.2",
    "angular2-meteor-accounts-ui": "^0.6.1",
    "angular2-meteor-auto-bootstrap": "0.6.0",
    "angular2-meteor-polyfills": "0.1.1",
    "angular2-meteor-tests-polyfills": "0.0.2",
    "es6-shim": "0.35.1",
    "meteor-node-stubs": "0.2.3",
    "ng2-pagination": "^0.3.5",
    "reflect-metadata": "0.1.3",
    "rxjs": "5.0.0-beta.6",
    "zone.js": "0.6.12"
  }
}

1 个答案:

答案 0 :(得分:1)

在package.json中更新这3个

LIKE

您可以参考最新的package.json here

看看这是否有帮助。