If you want to update your CLI, you need to run:
npm install -g ionic@latest
To update your project, open the package.json file and update the ionic-angular record version and any other dependencies that need to be updated. A link to package.json is here , which loads when a new project starts.
Then delete your node_modules projects and run:
npm install in the project directory.
Suraj rao
source share