How to update or upgrade angular cli version

devquora
devquora

Posted On: Feb 22, 2018

 

In order to upgrade angular-cli package that was installed globally in your system, you need to run following commands

npm uninstall -g angular-cli
npm cache clean or npm cache verify (if npm > 5)
npm install -g @angular/cli@latest

Instead of upgrading global version of angular-cli you can also upgrade the local version for specific project y running following commands:

rm -rf node_modules
npm uninstall --save-dev angular-cli
npm install --save-dev @angular/cli@latest
npm install

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Angular 6 Interview Questions

    List some new features comes with Angular6

    Latest Key features of Angular 6Added support for creating Custom Elements based on Angular Components. Animations: ex..

    Angular 6 Interview Questions

    Explain Ivy Renderer in Angular?

    Ivy Renderer is the next generation renderer to serve the purpose of enhanced performance. The Ivy renderer decreases the bundle size and the loading time which improves the performance and moreover, ...

    Angular 6 Interview Questions

    What is Bazel and Closure Compiler in Angular6?

    Bazel is a built tool introduced with the Angular 6 that is used extensively by Google. It is mainly used to optimize the angular compilation and improves the building and test on Angular apps. The C...