uninstall angular cli and install again code example Example: uninstall angular cli npm uninstall -g @angular/cli npm cache clean --force