2

When we run this command (ionic lab) then it show this error. how we solve it..

ng run app:serve --host=0.0.0.0 --port=8100
[ng] The run command requires to be run in an Angular project, but a project definition could not be found.

[ERROR] ng has unexpectedly closed (exit code 1).

        The Ionic CLI will exit. Please check any output above for error details.
Aakankshi Gupta
  • 305
  • 1
  • 6
  • 18

2 Answers2

0

check the command line if you are in the directory containing package.json and run the following commands:

 npm install
 ionic serve
-1

It seems you are not inside the right folder. You have to run your ng run command in the same place your runned your ng new command (or wherever you have initialized your Angular project).

rguerin
  • 2,068
  • 14
  • 29