how to uninstall angular cli and reinstall the latest version code example Example: uninstall angular cli npm uninstall -g @angular/cli npm cache clean --force