我想升级我的角度版本8-> 9
跟随:https://update.angular.io/#8.0:9.0l2,我想运行以下命令:
Package "ng-push" has an incompatible peer dependency to "@angular/core" (requires "^6.0.0" (extended), would install "8.2.14").
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.
,我得到了错误:
--force
是否存在一种解决问题的方法{{1}}?我认为用武力很危险。有任何想法吗 ?提前谢谢。
答案 0 :(得分:-1)
我建议您遵循高级类别Angular update 8 > 9。它使您可以更清楚地了解更新内容。更新角度后,您可能必须更新与角度9不兼容的第三方库。如果不确定会发生什么,最好先运行npm audit
,然后再运行run npm audit fix
。我已经使用这种方法将我的解决方案更新为angular9。除此之外,我还根据您在项目中所做的工作来帮助这些修复程序
ScrollDispatchModule not in angular issue和
The Angular @ViewChild decorator issue