upgrade angular cli locally code example
Example 1: update angular cli globally
npm update @angular/cli -g
Example 2: update local angular cli
ng update @angular/core @angular/cli
npm update @angular/cli -g
ng update @angular/core @angular/cli