Node js

How to uninstall/upgrade Angular CLI?

Pinterest LinkedIn Tumblr

To uninstall the Angular CLI, you can use the following command in the terminal:

This will remove the Angular CLI from your system.

To upgrade the Angular CLI to the latest version, you can use the following command:

npm install -g @angular/cli@latest

This will install the latest version of the Angular CLI globally on your system. If you want to upgrade to a specific version of Angular CLI, you can replace latest with the version number you want to install. For example, to install version 12.0.0 of the Angular CLI, you can use the following command:

npm install -g @angular/[email protected]

Note that you may need to use sudo before the above commands if you are running them on a Unix-based system, such as macOS or Linux.

npm uninstall -g angular-cli

npm uninstall -g @angular/cli

npm cache clean

Now, Run

npm install -g @angular/cli