DEV Community

Cover image for Angular Latest version upgrade to v10 and CLI Update
manoj
manoj

Posted on • Edited on

1 2

Update Angular Cli Angular Latest version upgrade to v10 and CLI Update

Angular 10.0.0 is finally here. While upgrading to Angular 10 version remember few things before running ng update command.

  1. Its always advisable to update your app to its next major version.
  2. That is if you are using Angular 7 or Angular 8 or Angular 6,5, 4 etc versions, Do not try to update to Angular 10 Directly.
  3. First Update your Angular app to Angular 9.
  4. Then use ng update command.

On June 25, 2020 Angular version 10.0.0 is released.

Just update @angular/core and @angular/cli by using ng update command.

ng update @angular/core @angular/cli

Angular CLI version check

To check the Angular CLI version use to below command

ng -version

Update Angular CLI version Globally

First you need to uninstall the existing angular cli packages followed by npm cache verify command to clear the cache related problems.

And the install the Angular CLI version again by using npm install -g @angular/cli@latest

To update Angular CLI version globally in your system use the below commands

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

Enter fullscreen mode Exit fullscreen mode

Update Angular CLI version Locally

To update Angular CLI version in your local projects use the following commands.

Navigate to your local Angular project folder and execute the below commands.

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

Enter fullscreen mode Exit fullscreen mode

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay