Angular update

Update Angular Material:

npm install --save @angular/material @angular/cdk

Update Angular via cli (--allow-dirty flag skips the repo check and does not throw "Repository is not clean" error):

ng update @angular/cli @angular/core --allow-dirty

Update Angular via cli (--force flag force the update):

ng update @angular/cli @angular/core --force

Update Angular via cli to a specific version:

ng update @angular/cli@^10 @angular/core@^10

Update Angular Material

ng update @angular/material

Show outdated libraries:

npm outdated

Install latest Bootstrap:

npm install bootstrap@latest --save

Update Bootstrap to specific verion:

npm install bootstrap@5.0.0-alpha3 --save

Leave a Reply

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