ng update @ angular / core @ angular / CLI
npm uninstall -g angular-cli
npm install -g @angular/cli@latest
Erton Sotero
npm uninstall -g angular-cli
npm install -g @angular/cli@latest
For updating angular cli type this command :
ng update @angular/cli @angular/core
content_copy
ng update @angular/cli @angular/core
npm uninstall -g @angular-cli
npm install -g @angular/cli@latest
ng update @angular/core@12 @angular/cli@12