npm update @angular/cli -g
npm uninstall -g @angular-cli
npm install -g @angular/cli@latest
npm uninstall -g @angular-cli
npm cache verify
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
rm -rf node_modules
npm uninstall --save-dev @angular/cli
npm install --save-dev @angular/cli@latest
npm install