Я получаю эту ошибку при попытке выполнить существующий проект Angular - PullRequest
0 голосов
/ 19 апреля 2020
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! angular5@0.0.0 start: `ng serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular5@0.0.0 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!     C:\Users\shind\AppData\Roaming\npm-cache\_logs\2020-04-19T14_35_36_189Z-debug.log

Я получаю эту ошибку, когда пытаюсь запустить существующий Angular проект.

1 Ответ

0 голосов
/ 19 апреля 2020

Кажется, что вы вызываете проект с глобально установленным angular. Вы должны cd с вашей оболочкой в ​​'my-path / my- angular -project'.

...