To uninstall and reinstall the Angular CLI (Command Line Interface), you can follow these steps:
Uninstall Angular CLI:
- Open Terminal or Command Prompt: Open your terminal or command prompt window.
- Uninstall Angular CLI: Run the following command to uninstall Angular CLI globally:
npm uninstall -g @angular/cli
This command will remove the Angular CLI package from your system.
Clear Cache:
npm cache clean --force npm cache verify
Install Angular CLI:
npm install -g @angular/cli
Now you have new version of angular cli. so you can check it by following command:
ng version