angular update to latest version Edit
it is always a good practice to keep upgrading your angular version whenever the latest version is available.
Use the following commands to update
ng update @angular/cli @angular/core
if you are facing some issues updating, the best option would be to remove angular from windows completely and reinstall it.
Using following commands to uninstall
npm uninstall -g @angular/cli npm cache clean --force
Using following commands to reinstall
npm install -g @angular/cli
if for some reason you are unable to uninstall angular cli, please check this article cannot uninstall angular cli