Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upgrade minor version of angular using angular cli

Tags:

This is a simple question but I'm struggling to find the answer via Google...

I have an angular 4 project (created using angular cli) and would like to make use of http interceptors that have just been released in 4.3.

How do I upgrade to this minor release using angular cli?

like image 684
Simon Avatar asked Jul 18 '17 14:07

Simon


People also ask

How do I update my Angular version?

Steps To update Angular CLI version globally in your system. First uninstall the existing Angular cli packages. Then run npm cache verify command to clear the node packages cache. Then install latest Angular CLI version using npm install -g @angular/cli@latest command.

How do I upgrade from Angular 12 to 13?

Below are steps: npx @angular/cli@13 update @angular/core@13 @angular/cli@13(error: peer dependency) npx @angular/cli@13 update @angular/core@13 @angular/cli@13 --force(Sucessfully executed) ng serve.


1 Answers

In my Angular CLI project I use npm update to update my dependencies. With npm outdated, you can see all outdated dependencies.


Update June 2018

If you're using Angular CLI version 6+, you can use the new ng update <packagename> command to update your dependencies.

⚠️ This will update to the newest major version. If you don't want that stick with npm update. ⚠️

https://angular.io/guide/updating

For simple updates, the CLI command ng update is all you need. Without additional arguments, ng update lists the updates that are available to you and provides recommended steps to update your application to the most current version.

like image 61
Kim Kern Avatar answered Sep 28 '22 18:09

Kim Kern