nagular cli global code example
Example 1: update angular cli globally
npm update @angular/cli -g
Example 2: install angular cli specific version
npm install -g @angular/cli@6.1.1
npm update @angular/cli -g
npm install -g @angular/cli@6.1.1