How to Uninstall Angular Cli

cover-photo

How to Uninstall Angular Cli



blog-photo

In this post we are going to see how to uninstall angular cli completely from your system.

Below is the command to uninstall angular cli globally.

npm install -g @angular/cli  

-g denotes that npm will remove angular cli from your system completely.

You can also clear cache files generated by the node package manager (npm). These files are generated for the temporary usage of libraries to work properly.

There will be no such harm by deleting these files but it should be cleaned by the node package manager (npm) itself.

To delete these file the node package manager provides a command which is below

npm cache clean


If the above command doesn't work you can try using the --force flag with it to force delete the cache files

npm cache clean --force


Now check the below folder in your system to make sure that all folder regarding angular has been removed from your system. Remove if any folder with name @angular exists inside node_modules.

C:\Users\UserName\AppData\Roaming\npm\node_modules

Type your PC's username in place of "UserName".

You can now use below npm command to check the angular version

ng --version


If angular cli is uninstalled from your system it will show a message like below:

'ng' is not recognized as an internal or external command,
operable program or batch file.    




Happy Coding!