update angular local version code example
Example 1: update angular cli
npm uninstall -g @angular-cli
npm install -g @angular/cli@latest
Example 2: update local angular cli
ng update @angular/core @angular/cli
npm uninstall -g @angular-cli
npm install -g @angular/cli@latest
ng update @angular/core @angular/cli