update the angular version npm command code example
Example 1: update angular cli globally
npm update @angular/cli -g
Example 2: update angular to specific version
ng update @angular/[email protected] @angular/[email protected]
npm update @angular/cli -g
ng update @angular/[email protected] @angular/[email protected]