0

I'm newbie for working on angular. when I;m trying to execute the application from the terminal with the commmand "ng serve --open" I'm getting an error stating as like below :

"The serve command requires to be run in an Angular project, but a project definition could not be found."

I had taken a search in google I found that my ng versions and node versions should be same. I had cheked the versions with "ng v" command the versions are as like below :

angular cli : 8.3.22 node : 12.14.1

I'm unable to resolve the issue.

Srikanth Reddy
  • 447
  • 1
  • 8
  • 23

4 Answers4

0

Using the command line make sure you are in the folder of your angular application and after tap

ng serve --open

0

Navigate into the project by issuing the command cd

rafi muhammad
  • 194
  • 2
  • 11
0

"The serve command requires to be run in an Angular project, but a project definition could not be found." -- this says you are running ng command outside of your project

raharshi puli
  • 306
  • 2
  • 7
0

run this command

ng update @angular/cli --migrate-only --from=1.7.3

you can refer this post also Angular CLI Error: The serve command requires to be run in an Angular project, but a project definition could not be found

debug_dk
  • 100
  • 1
  • 5