I have downloaded a project from the Internet and tried ng serve
but I got:
The serve command requires to be run in an Angular project, but a project definition could not be found.
So I tried this command(as in README file is written the CLI version that the app is generated by is 1.4.9
):
ng update @angular/cli --migrate-only --from=1.4.9
I get no errors after this command, but when I try ng serve
I get the previous error again!
How can I fix this?
after updating did you cd back into the angular project the one with src > app ? you have to run this command in the directory where package.json exists