我正在尝试将Angular 6.2.4应用程序升级到Angular 8.0.2 我按照angular.io上给出的步骤进行了渐进式渐变。但是,当我输入“ ng update @ angular / cli @ angular / core”命令时,仍然会收到此错误
Your global Angular CLI version (8.0.2) is greater than your local
version (6.2.4). The local Angular CLI version is used.
To disable this warning use "ng config -g cli.warnings.versionMismatch false".
Package "codelyzer" has an incompatible peer dependency to "@angular/compiler" (requires ">=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0" (extended), would install "8.0.0").
Package "@angular/material-moment-adapter" has a missing peer dependency of "moment" @ "^2.18.1".
Package "@angular/http" has an incompatible peer dependency to "@angular/platform-browser" (requires "6.1.9" (extended), would install "8.0.0").
Package "@ng-bootstrap/ng-bootstrap" has an incompatible peer dependency to "@angular/forms" (requires "^6.1.0" (extended), would install "8.0.0").
Package "ngx-loading" has an incompatible peer dependency to "@angular/common" (requires "^6.0.0-rc.0 || ^6.0.0" (extended), would install "8.0.0").
Package "codelyzer" has an incompatible peer dependency to "@angular/core" (requires ">=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0" (extended), would install "8.0.0").
Incompatible peer dependencies found. See above.
请帮助我升级我的应用程序。
答案 0 :(得分:0)
您需要更新本地Angular版本。
打开命令提示符,转到您的packages.json所在的文件夹,然后键入:
ng update @angular/cli