how to update angular cli version globally and locally code example Example: update angular cli globally npm update @angular/cli -g