Using package manager: 'yarn' Collecting installed dependencies... Found 32 dependencies. We analyzed your package.json, there are some packages to update: Name Version Command to update -------------------------------------------------------------------------------- @angular/cli 7.3.9 -> 8.0.2 ng update @angular/cli @angular/core 7.2.15 -> 8.0.0 ng update @angular/core
There might be additional packages that are outdated. Run "ng update --all" to try to update all at the same time.
可以看到,@angular/cli 和 @angular/core 都可以升级到8的版本。
升级Angular8
选择一次性全部升级,所以执行以下命令:
1
ng update --all
这时系统会提示typescript的版本不兼容
1
Package "@angular-devkit/build-angular" has an incompatible peer dependency to "typescript" (requires ">=3.1 < 3.5", would install "3.5.1")