Update Angular locally

Update angular locally . This small article I am going to show you how you can easily update your local angular version to latest. I am using npm-check-updates package to update the package.json

Follow the below steps.

# Install npm-check-updates
$ npm i -g npm-check-updates

# Run npm-check-updates with -u, will upgrade package.json
$ ncu -u

# Install updated packages
$ npm install
Upgrading C:\wamp64\www\utrac-ng\package.json
[====================] 36/36 100%

 @angular/animations                  ~10.0.4  →    ~11.0.0     
 @angular/cdk                         ^10.2.7  →    ^11.0.0
 @angular/common                      ~10.0.4  →    ~11.0.0
 @angular/compiler                    ~10.0.4  →    ~11.0.0
 @angular/compiler-cli               ^10.0.14  →    ^11.0.0
 @angular/core                        ~10.0.4  →    ~11.0.0
 @angular/forms                       ~10.0.4  →    ~11.0.0
 @angular/material                    ^10.2.7  →    ^11.0.0
 @angular/platform-browser            ~10.0.4  →    ~11.0.0
 @angular/platform-browser-dynamic    ~10.0.4  →    ~11.0.0
 @angular/router                      ~10.0.4  →    ~11.0.0
 rxjs                                  ~6.5.5  →     ~6.6.3
 tslib                                 ^2.0.0  →     ^2.0.3
 typescript                            ~3.9.5  →     ~4.0.5
 zone.js                              ~0.10.3  →    ~0.11.3
 @angular-devkit/build-angular      ~0.1000.3  →  ~0.1100.1
 @types/jasmine                        ~3.5.0  →     ~3.6.1
 @types/jasminewd2                     ~2.0.3  →     ~2.0.8
 @types/node                         ^12.11.1  →   ^14.14.7
 codelyzer                             ^6.0.0  →     ^6.0.1
 jasmine-core                          ~3.5.0  →     ~3.6.0
 jasmine-spec-reporter                 ~5.0.0  →     ~6.0.0
 karma                                 ~5.0.0  →     ~5.2.3
 karma-coverage-istanbul-reporter      ~3.0.2  →     ~3.0.3
 karma-jasmine                         ~3.3.0  →     ~4.0.1
 karma-jasmine-html-reporter           ^1.5.0  →     ^1.5.4
 ts-node                               ~8.3.0  →     ~9.0.0

Run npm install to install new versions.

Leave a Reply

Your email address will not be published. Required fields are marked *