How to uninstall the Angular CLI
In this tutorial, we are going to learn about how to completely uninstall the angular cli from your system.
Uninstalling the Angular CLI
- Run the following command in your terminal to uninstall the angular cli (global) package.
npm uninstall -g @angular/cli
- Clear the cache
npm cache clean --force
Note: In macOS, you need to add
Example for mac users:
sudo npm uninstall -g @angular/cli
If you are using an old version of angular-cli then you can uninstall it like this.
npm uninstall -g angular-cli
You can also install the latest version of angular cli by using the following command.
npm install -g @angular/cli@latest
sudo npm install -g @angular/cli@latest