【发布时间】:2020-03-16 13:18:06
【问题描述】:
这是我的离子信息:
Ionic CLI : 6.2.1 (C:\Users\Arashsoft\AppData\Roaming\npm\node_modules\@ionic\cli)
Ionic Framework : @ionic/angular 5.0.5
@angular-devkit/build-angular : 0.803.25
@angular-devkit/schematics : 8.3.25
@angular/cli : 9.0.6
我想更新@angular-devkit/build-angular,但出现以下错误:
-
首先,我在运行
ng update @angular/core后遇到这些错误:Repository is not clean. Please commit or stash any changes before updating. -
然后我再次尝试使用此命令:
ng update @angular/cli @angular/core --allow-dirty然后得到这些错误:
Package "@angular-devkit/build-angular" has an incompatible peer dependency to "typescript" (requires ">=3.1 < 3.6", would install "3.7.5"). × 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 "C:\Users\ARASHS~1\AppData\Local\Temp\ng-zWLLPl\angular-errors.log" for further details.
我该如何解决?
【问题讨论】:
标签: node.js angular npm command-line-interface