npm uninstall -g @angular-cli
npm cache verify
npm install -g @angular/cli@latest
content_copy
ng update @angular/cli @angular/core
ng update @angular/core @angular/cli --force
npm uninstall -g @angular-cli
npm install -g @angular/cli@latest
Go through the steps illustrated here:
https://update.angular.io/