The serve command requires to be run in an Angular project, but a project definition could not be found.
原因是新的@ angular / cli表单版本7在版本1.xx中有一个angular.json文件而不是angular-cli.json你可以通过运行修复它:
ng update @angular/cli --migrate-only --from=<Your_Angular_CLI_Old_Version>
例子:ng update @angular/cli --migrate-only --from=1.5.2