关于全新安装的AngularClass angular2-webpack-starter

时间:2016-11-13 10:54:19

标签: npm webpack

我是angular2的新手。 我刚刚安装了https://github.com/AngularClass/angular2-webpack-starter,我对很多警告感到有些困惑。

首先,我不知道这些警告是否无害......或者我以后是否会遇到问题。我不得不担心他们吗?

我不明白,因为它应该没问题。见(1)

那么,我是否必须尝试纠正它们?打破其他包装存在风险,对吧?见(2)& (3)。

其次,一些警告在它们之间是不相容的。你是如何管理的?

见(4)tslint@^3.9.0 /(3)tslint@4.0.0-dev.* (4)rxjs@5.0.0-beta.12 /(2)rxjs@5.0.0-rc.2

感谢您的建议。 问候。

以下是警告:

(1)

+-- UNMET PEER DEPENDENCY @angular/common@2.1.1
+-- @angular/compiler@2.1.1
+-- UNMET PEER DEPENDENCY @angular/core@2.1.1
+-- @angular/forms@2.1.2

而在package.json中,我有:

  "dependencies": {
    "@angular/common": "2.1.1",
    "@angular/compiler": "2.1.1",
    "@angular/core": "2.1.1",
    "@angular/forms": "^2.1.1",
    "@angular/http": "2.1.1",

(2)

+-- UNMET PEER DEPENDENCY rxjs@5.0.0-rc.2
| `-- symbol-observable@1.0.4
package.json中的

   "rxjs": "^5.0.0-rc.1",

(3)

+-- UNMET PEER DEPENDENCY tslint@4.0.0-dev.1
| +-- colors@1.1.2
| +-- diff@3.0.1

package.json:

 "devDependencies": {
...
      "tslint": "^4.0.0-dev.0",

(4)

npm WARN @angular/http@2.1.1 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN @angular/router@3.1.1 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN @angular/forms@2.1.2 requires a peer of @angular/core@2.1.2 but none was installed.
npm WARN @angular/forms@2.1.2 requires a peer of @angular/common@2.1.2 but none was installed.
npm WARN @angular/core@2.1.1 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN codelyzer@1.0.0-beta.3 requires a peer of tslint@^3.9.0 but none was installed.
npm WARN tslint-loader@2.1.5 requires a peer of tslint@^3.0.0 but none was installed.

0 个答案:

没有答案