我已经更新了我的角度,我收到以下错误:
The serve command requires to be run in an Angular project, but a project definition could not be found.
我已经完成了以下工作:
D:\IntelliJProjects\springboottests\src\main\frontend2>ng update @angular/cli --migrate-only
Package not installed: "@angular/cli". Skipping.
We analyzed your package.json and everything seems to be in order. Good work!
D:\IntelliJProjects\springboottests\src\main\frontend2>ng serve
The serve command requires to be run in an Angular project, but a project definition could not be found.
D:\IntelliJProjects\springboottests\src\main\frontend2>
我在 package.json 和 angular-cli.json 的文件夹中。
我已经尝试过stackoverflow的建议,但没有任何帮助。
我的版本:
Package Version
------------------------------------------------------
@angular-devkit/architect 0.12.2 (cli-only)
@angular-devkit/core 7.2.2 (cli-only)
@angular-devkit/schematics 7.2.2 (cli-only)
@angular/tsc-wrapped 0.5.2
@ngtools/json-schema 1.1.0
@ngtools/webpack 1.10.2
@schematics/angular 7.2.2 (cli-only)
@schematics/update 0.12.2 (cli-only)
rxjs 6.3.3
typescript 3.2.4
webpack 2.2.0
有什么帮助吗?