angular2 2.0.0 UNMET PEER DEPENDENCY rxjs@5.0.0-beta.12,npm WARN angular2-jwt@0.1.22需要rxjs@5.0.0-beta.11的同行

时间:2016-09-15 07:21:42

标签: node.js angular angular2-jwt

这是我的package.json文件中的依赖项:

FooView

我收到angular2-jwt依赖的警告,但我需要这个包。 这是一条警告信息:

"dependencies": {
    "@angular/common": "2.0.0",
    "@angular/compiler": "2.0.0",
    "@angular/core": "2.0.0",
    "@angular/forms": "2.0.0",
    "@angular/http": "2.0.0",
    "@angular/platform-browser": "2.0.0",
    "@angular/platform-browser-dynamic": "2.0.0",
    "@angular/router": "3.0.0",
    "@angular/upgrade": "2.0.0",
    "angular2-in-memory-web-api": "0.0.20",
    "angular2-jwt": "^0.1.22",
    "bootstrap": "^3.3.6",
    "core-js": "^2.4.1",
    "es6-promise": "^3.1.2",
    "es6-shim": "^0.35.1",
    "es7-reflect-metadata": "^1.6.0",
    "jwt-decode": "^2.0.1",
    "reflect-metadata": "^0.1.3",
    "rxjs": "5.0.0-beta.12",
    "systemjs": "0.19.27",
    "zone.js": "^0.6.23"
  },

有什么想法吗?谢谢。

4 个答案:

答案 0 :(得分:0)

这样的警告可以忽略。 angular2-jwt只需更新对等依赖项以匹配angular2的发布版本。一切都会工作,并按预期安装

答案 1 :(得分:0)

你需要告诉sytemjs在哪里是angular2-jwt路径,所以你需要包含在map对象中。 ' angular2-jwt':' npm:angular2-jwt / angular2-jwt.js'

答案 2 :(得分:0)

请确保,你有package.json字符串:

"devDependencies": {
    ....
  },
  "dependencies": {
    ....
    "@types/systemjs": "^0.19.32",
    "angular": "^1.5.0",
    "angular-animate": "^1.5.0",
    "angular-mocks": "^1.5.0",
    "base64-js": "^1.2.0",
    "bower": "^1.3.12",
    ....
  }

答案 3 :(得分:0)

错误:(SystemJS)XHR错误(404 Not Found)loading http://localhost:3000/ng2-dropdown-treeview

ng2-dropdown-treeview

我在'rxjs': 'npm:rxjs', 'angular-in-memory-web-api': 'npm:angular-in-memory-web-api/bundles/in-memory-web-api.umd.js', 'lodash': 'npm:lodash/lodash.min.js', 'ng2-dropdown-treeview': 'npm:ng2-dropdown-treeview/bundles/ng2-dropdown-treeview.umd.js', 的system.config.js文件中添加了依赖项,然后它适用于我。

SELECT  (trunc(DATEATTRIBUTE2) -
              trunc(DATEATTRIBUTE1) )  AS result
FROM SONY_TEST_TABLE;