angular - 我正在将 Angular 版本从 7 更新到 8。但出现对等依赖错误
问题描述
我尝试使用 --force ,但没有用。
错误代码 -
Package "@ng-bootstrap/ng-bootstrap" has an incompatible peer dependency to "@angular/common" (requires "^7.0.0" (extended), would install "9.1.9").
Package "@swimlane/ngx-charts" has an incompatible peer dependency to "@angular/animations" (requires "6.x" (extended), would install "9.1.9").
Package "codelyzer" has an incompatible peer dependency to "@angular/compiler" (requires ">=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0" (extended), would install "9.1.9").
Package "@swimlane/ngx-charts" has an incompatible peer dependency to "@angular/platform-browser" (requires "6.x" (extended), would install "9.1.9").
Package "@swimlane/ngx-charts" has an incompatible peer dependency to "@angular/platform-browser-dynamic" (requires "^6.0.0" (extended), would install "9.1.9").
Package "@ng-bootstrap/ng-bootstrap" has an incompatible peer dependency to "@angular/forms" (requires "^7.0.0" (extended), would install "9.1.9").
Package "codelyzer" has an incompatible peer dependency to "@angular/core" (requires ">=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0" (extended), would install "9.1.9").
Package "ngx-jsoneditor" has an incompatible peer dependency to "rxjs" (requires "^5.1.0", would install "6.5.5").
Package "ngx-jsoneditor" has an incompatible peer dependency to "zone.js" (requires "^0.8.4", would install "0.10.3").
解决方案
您需要安装每个依赖项的兼容版本,这是它的代码
npm i --save dependencyName@version
推荐阅读
- python - 尝试将多个正则表达式转换为 int 值时引发源错误(“没有重复”)
- django - Django 错误 admin.E202 'stamm.Workplan' 没有 ForeignKey 到 'enquiry.Costing',多对多关系中的内联模型
- r - 在 R 中的网络图中操作边缘列表
- wordpress - 如何禁用从日期路径访问 Wordpress 帖子?
- android - 使用google vision api时“矩形不在图像内”
- c++ - 在 C++ 中使用链表时出现空指针异常
- android - Dagger 2 无法提供和注入接口及其在android中的实现
- hyperparameters - Ray[tune]: FileNotFoundError: [WinError 2] 系统找不到指定的文件
- go - 有没有办法在我的 golang 服务器中使用云运行 tls 证书?
- xml - 如何 WEB SCRAPE XML 站点地图