Yes. If you want to upgrade your Angular CLI or any older version of Angular to Angular version 8, you can easily do it. Follow the steps given below:
- First, check the older version of Angular that you are using. Run the ng –version command on the Node.js command prompt.
- Now, you have to uninstall the older version of Angular by using the following command.
npm uninstall -g angular-cli // For Windows Open Powershell on Administrator Mode
sudo npm uninstall -g angular-cli // For Mac - Now, verify and clear the cache by using the following commands.
npm cache verify
npm cache clean - Now, install the latest Angular CLI (Angular 8) by using the following command.
npm install -g @angular/cli@latest - You can now verify that you are using the correct version by using the following command.
ng –version