s

cannot uninstall angular cli edit button Edit

author
Murugan Andezuthu Dharmaratnam | calendar 04 September 2020 | 3930

if you are already using angular cli on your machine and you are having trouble uninstalling angular cli, follow the steps below to remove angular cli from your machine.

first lets try uninstalling angular cli. go to command prompt and try the following command

npm uninstall -g @angular/cli
npm cache clean                    

if you are facing some issues, open the command prompt using Administrator privileges and try running the command again. if it doesn't work try this.

npm uninstall -g angular-cli to uninstall the angular/cli.
npm cache clean to clean your npm cache from app data folder under your username.
use npm cache verify to verify your cache whether it is corrupted or not.
use npm cache verify --force to clean your entire cache from your system.            
                    

still facing issues, the last option would be to physically go to the folder and delete the files.

C:\Users\"Your_syste_User_name"\AppData\Roaming\npm and
C:\Users\"Your_syste_User_name"\AppData\Roaming\npm-cache                 
                    

use the below command to install reinstall angular globally on your machine

npm install -g @angular/cli@latest