NodeJS 固定角安装15.0.5

ss2ws0br  于 2023-01-30  发布在  Node.js
关注(0)|答案(1)|浏览(112)

ng v显示:

Angular CLI: 15.0.5
Node: 16.15.1
Package Manager: npm 9.2.0
OS: win32 x64

Angular: <error>
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1500.5 (cli-only)
@angular-devkit/build-angular   15.1.2 (cli-only)
@angular-devkit/core            15.0.5 (cli-only)
@angular-devkit/schematics      15.0.5 (cli-only)
@angular/cli                    15.0.5 (cli-only)
@schematics/angular             15.0.5 (cli-only)
rxjs                            6.6.7 (cli-only)
typescript                      4.9.4 (cli-only)

如何解决显示Angular: <error>的部分?
我试过:

npm uninstall -g @angular/cli
npm i -g @angular/cli@15.0.5

但我得到了相同的结果。

mi7gmzs6

mi7gmzs61#

在你的情况下,你应该批准 typescript 的版本。我想,你必须升级你的 typescript 版本!

相关问题