【发布时间】:2020-12-20 09:14:54
【问题描述】:
使用 ng update 命令将 angular 更新到最新版本。不断遇到对等依赖问题。
我尝试使用 --force 命令,但是有很多不同的问题
Package "@angular-redux/form" has an incompatible peer dependency to "@angular/core" (requires "^6.0.0" (extended), would install "10.0.14").
Package "tsickle" has an incompatible peer dependency to "typescript" (requires "~3.8.2", would install "3.9.7")
Package "@angular-redux/form" has an incompatible peer dependency to "@angular/common" (requires "^6.0.0" (extended), would install "10.0.14").
Package "@angular-redux/form" has an incompatible peer dependency to "@angular/compiler" (requires "^6.0.0" (extended), would install "10.0.14").
Package "@angular-redux/form" has an incompatible peer dependency to "@angular/forms" (requires "^6.0.0" (extended), would install "10.0.14").
Package "@swimlane/ngx-datatable" has an incompatible peer dependency to "@angular/platform-browser" (requires "<9.0.0" (extended), would install "10.0.14").
Package "@angular-redux/router" has an incompatible peer dependency to "@angular/router" (requires "^6.0.3" (extended), would install "10.0.14").
Package "tsickle" has an incompatible peer dependency to "typescript" (requires "~3.8.2", would install "3.9.7").
✖ Migration failed: Incompatible peer dependencies found.
Peer dependency warnings when installing dependencies means that those dependencies might not work correctly together.
You can use the '--force' option to ignore incompatible peer dependencies and instead address these warnings later.
See "/private/var/folders/dh/r0v3cpq168x9bjxp1mjrrgxw0000gn/T/ng-nxMhiB/angular-errors.log" for further details.
【问题讨论】:
标签: angular angular-cli angular8 angular10 angular-upgrade