我正在尝试将 angular 从 9 更新到 11如何解决依赖性问题?

问题描述

我正在尝试将项目从 angular 9 更新到 11。按照 Angular 更新指南,我应该运行 ng add @angular/localize,但出现以下错误

An unhandled exception occurred: npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: veafront@0.0.0
npm ERR! Found: tslib@2.1.0
npm ERR! node_modules/tslib
npm ERR!   tslib@"^2.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer tslib@"^1.10.0" from @angular/compiler@9.1.13
npm ERR! node_modules/@angular/compiler
npm ERR!   @angular/compiler@"~9.1.11" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict,or retry
npm ERR! this command with --force,or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See C:\Users\kacpe\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\kacpe\AppData\Local\npm-cache\_logs\2021-03-24T13_18_04_703Z-debug.log
Package install Failed,see above.
See "C:\Users\kacpe\AppData\Local\Temp\ng-31LdX5\angular-errors.log" for further details.

我尝试使用 --force--legacy-peer-deps 但没有帮助。我该如何解决这个问题?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...