ng2-charts的兼容版本与angular-cli版本6.2.9

时间:2019-05-03 15:43:11

标签: ng2-charts

与Angular-cli版本6.2.9一起使用的哪个ng2-chart版本? 我正在尝试安装ng2-chart库,但是它警告我有关结对依赖性。

在安装npm时出现以下警告:

npm WARN ng2-charts@2.2.2 requires a peer of @angular/common@^7.2.0 but none is installed. You must install peer dependencies yourself.

npm WARN ng2-charts@2.2.2 requires a peer of @angular/core@^7.2.0 but none is installed. You must install peer dependencies yourself.

npm WARN ng2-charts@2.2.2 requires a peer of rxjs@^6.3.3 but none is installed. You must install peer dependencies yourself.

下面是依赖项:

"dependencies": {
    "@angular/animations": "~6.1.0",
    "@angular/common": "~6.1.0",
    "@angular/compiler": "~6.1.0",
    "@angular/core": "~6.1.0",
    "@angular/forms": "~6.1.0",
    "@angular/http": "~6.1.0",
    "@angular/platform-browser": "~6.1.0",
    "@angular/platform-browser-dynamic": "~6.1.0",
    "@angular/router": "~6.1.0",
    "@types/file-saver": "~2.0.0",
    "chart.js": "~2.7.3",
    "primeicons": "~1.0.0",
    "primeng": "~6.1.7",
    "rxjs": "~6.2.0",
    "rxjs-compat": "~6.3.3",
    "zone.js": "~0.8.26"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.8.0",
    "@angular/cli": "~6.2.9",
    "@angular/compiler-cli": "~6.1.0",
    "@angular/language-service": "~6.1.0",
    "@types/jasmine": "~2.8.8",
     "typescript": "~2.9.2"
  }

如何在不升级到角度7的情况下解决此警告?哪个ng2-charts版本支持angular-cli-6版本?

0 个答案:

没有答案