问题一、angular版本问题
cielo@cielo-ThinkPad-E550:~/cprogrames/test-bna/angular-test$ ng serve
The serve command requires to be run in an Angular project, but a project definition could not be found.
用npm start也是同样的问题。
cielo@cielo-ThinkPad-E550:~/cprogrames/test-bna/angular-test$ npm start
> angular-test@0.0.1 start /home/cielo/cprogrames/test-bna/angular-test
> ng serve --proxy-config proxy.conf.js --host 0.0.0.0
The serve command requires to be run in an Angular project, but a project definition could not be found.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! angular-test@0.0.1 start: `ng serve --proxy-config proxy.conf.js --host 0.0.0.0`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-test@0.0.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/cielo/.npm/_logs/2019-04-12T13_09_57_716Z-debug.log
该问题解决方案:
ng update @angular/cli --migrate-only --from=1.7.3
https://stackoverflow.com/questions/53096996/angular-cli-error-the-serve-command-requires-to-be-run-in-an-angular-project-b
作者:低调奋进
来源:CSDN
原文:https://blog.csdn.net/zwbHUST/article/details/89024467
版权声明:本文为博主原创文章,转载请附上博文链接!
其实我也在starkoverflow看到了。
我的版本明明是7.3.8,但是–from=【】这块写7.3.8没有用。
不过运行了之后好了似乎。报了新的错误
问题二
红一片,我的心情不知道该如何描述。
cielo@cielo