作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
当运行终端命令 ng server
或 ng serve --live-reload=true
时,我遇到了这个问题:
The serve command requires to be run in an Angular project, but a project definition could not be found.
最佳答案
我也遇到了这个问题并通过运行以下命令解决了。
ng update @angular/cli --migrate-only --from=<WhateverVersionYouAreCurrentlyOn>
例如
ng update @angular/cli --migrate-only --from=1.7.3
从 here 获取引用
关于Angular CLI 错误 : The serve command requires to be run in an Angular project, 但找不到项目定义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53096996/
我是一名优秀的程序员,十分优秀!