When running ng serve I get this warning Your global Angular CLI version (12.0.5) is greater than your local version (1.5.0). The local Angular CLI version is used.
In order to upgrade the local Cli I've tried some steps but every time ng serve doesn't work Error: No projects support the 'serve' target.
these are the steps I've tried to upgrade
first try:
$ npm uninstall --save-dev angular-cli
$ npm install --save-dev @angular/cli@latest
$ npm install
second try:
# Install npm-check-updates
$ npm i -g npm-check-updates
# Run npm-check-updates with -u, will upgrade package.json
$ ncu -u
# Install updated packages
$ npm install