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?
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.
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.
In my Angular CLI project I use npm update
to update my dependencies. With npm outdated
, you can see all outdated dependencies.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With