How to Install Specific Version of Angular Material?
Hey,
This article goes in detail on npm install angular material specific version. We will look at an example of how to install specific version of angular material. Here you will learn how to install specific version of npm package. If you have a question about how to install older version of angular material then I will give a simple example with a solution. Follow the below tutorial step of how to get specific version of angular material.
Yesterday, I was working on my old angular 13 apps and I need to install an angular material theme. I tried it and it is not going to install because dependency issue. I need to install an older version of the angular material theme. i know we can install angular material using npm install @angular/material, but it's always getting latest version of npm package. However, I research and found the following command to install a specific version of angular material.
You can see below syntax and command.
Syntax:
<package>: add as npm package name.
<version>: specify npm package version here.
npm install <package>@<version>
Example:
I will pass 14.0.1 version of @angular/material npm package.
npm install @angular/material@14.0.1
I works for me.
I hope it will work for you.
Hardik Savani
I'm a full-stack developer, entrepreneur and owner of ItSolutionstuff.com. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Laravel, Angular, Vue, Node, Javascript, JQuery, Codeigniter and Bootstrap from the early stage. I believe in Hardworking and Consistency.
We are Recommending you
- Angular 14 Stripe Card Checkout Payment Gateway Example
- How to Install Tailwind CSS in Angular?
- How to Install Bootstrap 5 in Angular 14?
- Angular HttpClient HttpParams Example Tutorial
- How to Run Angular App on Different Port?
- Angular Stripe Payment Gateway Integration Tutorial
- Angular Simple Pagination Example | ngx-pagination
- Angular Slick Carousel/Slider Example
- Angular Pipe for Phone Number Example
- Angular Material Autocomplete Select Option Event Example
- How to Get Element Height and Width in Angular?