角度材料安装错误



我在安装角度材质时收到以下警告

npm WARN @angular/cdk@5.2.4 requires a peer of @angular/core@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/cdk@5.2.4 requires a peer of @angular/common@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/material@5.2.4 requires a peer of @angular/core@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/material@5.2.4 requires a peer of @angular/common@^5.0.0 but none is installed. You must install peer dependencies yourself.

现在,当我检查我的 Angular 版本(ng --version(时,我看到:

Angular CLI: 6.0.0-rc.3
Node: 9.11.1
OS: win32 x64
Angular: 6.0.0-rc.3
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
    @angular/cdk: 5.2.4
    @angular/material: 5.2.4
    @angular-devkit/architect: 0.5.5
    @angular-devkit/build-angular: 0.5.5
    @angular-devkit/build-optimizer: 0.5.5
    @angular-devkit/core: 0.5.5
    @angular-devkit/schematics: 0.5.5
    @ngtools/json-schema: 1.1.0
    @ngtools/webpack: 6.0.0-rc.3
    @schematics/angular: 0.5.5
    @schematics/update: 0.5.5
    typescript: 2.7.2
    webpack: 4.5.0

所以我比角度材料的 5.0 要求更高。我错过了什么?

我的目标是创建一个在我的VS2017项目中运行的应用程序。

我能够通过使用纱线而不是 npm 来重新填充它。 它似乎比 npm 更好地将依赖项保持在一起。 因此,在尝试更新 Angular 时,胃灼热要少得多。

带纱线的角

相关内容

最新更新