Npm Install Angular 5兼容版本

时间:2018-10-22 20:42:57

标签: angular npm

这是我的棱角版本

Angular CLI: 6.2.5
Node: 10.10.0
OS: win32 x64
Angular: 6.1.9
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.8.4
@angular-devkit/build-angular     0.8.4
@angular-devkit/build-optimizer   0.8.4
@angular-devkit/build-webpack     0.8.4
@angular-devkit/core              0.8.4
@angular-devkit/schematics        0.8.5
@angular/cdk                      7.0.0-rc.0
@angular/cli                      6.2.5
@angular/flex-layout              6.0.0-beta.18
@angular/material                 7.0.0-rc.0
@ngtools/webpack                  6.2.4
@schematics/angular               0.8.5
@schematics/update                0.8.5
rxjs                              6.3.3
typescript                        2.9.2
webpack                           4.20.2

这是我的package.json文件

"dependencies": {
    "@angular/animations": "^6.1.9",
    "@angular/cdk": "^7.0.0-rc.0",
    "@angular/common": "^6.1.9",
    "@angular/compiler": "^6.1.9",
    "@angular/core": "^6.1.9",
    "@angular/flex-layout": "^6.0.0-beta.18",
    "@angular/forms": "^6.1.9",
    "@angular/http": "^6.1.9",
    "@angular/material": "^7.0.0-rc.0",
    "@angular/platform-browser": "^6.1.9",
    "@angular/platform-browser-dynamic": "^6.1.9",
    "@angular/router": "^6.1.9",
    "@uimf/uitk": "^5.2.0",
    "core-js": "^2.4.1",
    "hammerjs": "^2.0.8",
    "ngx-toastr": "^9.1.1",
    "rxjs": "^6.3.3",
    "rxjs-compat": "^6.3.3",
    "zone.js": "^0.8.19"
  },

我正在从package.json文件所在的位置运行npm安装

npm WARN @angular/cdk@7.0.0-rc.0 requires a peer of @angular/core@>=7.0.0-rc.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/cdk@7.0.0-rc.0 requires a peer of @angular/common@>=7.0.0-rc.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/flex-layout@6.0.0-beta.18 requires a peer of @angular/cdk@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/material@7.0.0-rc.0 requires a peer of @angular/animations@>=7.0.0-rc.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/material@7.0.0-rc.0 requires a peer of @angular/core@>=7.0.0-rc.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/material@7.0.0-rc.0 requires a peer of @angular/common@>=7.0.0-rc.0 but none is installed. You must install peer dependencies yourself.
npm WARN ng2-dnd@5.0.2 requires a peer of @angular/core@^4.0.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ng2-dnd@5.0.2 requires a peer of @angular/forms@^4.0.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.

有人可以帮助我理解警告消息。从节点模块中,我可以看到角cdk,flexlayout,材质,ng2-dnd(最有可能是toastr)没有找到兼容的版本。有人可以帮助我如何确保安装兼容版本

0 个答案:

没有答案