angular cli latest code example
Example 1: update angular cli
npm uninstall -g @angular-cli
npm install -g @angular/cli@latest
Example 2: update angular cli
For updating angular cli type this command :
ng update @angular/cli @angular/core
Example 3: angular cli
/* @latest is optional */
npm install -g @angular/cli@latest
Example 4: install angular cli version
Install Specific Version (Example: 6.1.1)
npm install -g @angular/[email protected]