Ng has unexpectedly closed (exit code 1)

ng has unexpectedly closed (exit code 1).

ng.cmd run app:serve --host=localhost --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

Try ‘Ionic repair’ in terminal. Solved for me