update angular cli code example
Example 1: update angular cli globally
npm update @angular/cli -g
Example 2: install angular cli
npm install -g @angular/cli
ng new my-dream-app
cd my-dream-app
ng serve
Example 3: ng update @angular/core @angular/cli
npm uninstall -g angular-cli
npm install -g @angular/cli@latest
Example 4: update angular cli
npm uninstall -g @angular-cli
npm install -g @angular/cli@latest
Example 5: update angular cli
For updating angular cli type this command :
ng update @angular/cli @angular/core
Example 6: update angular cli
For updating angular cli type this command :
ng update @angular/cli @angular/core