ionic The generate command requires to be run in an Angular project, but a project definition could not be found code example
Example: The serve command requires to be run in an Angular project, but a project definition could not be found.
npm uninstall -g angular-cli
npm uninstall --save-dev angular-cli