How to install a specific version of an Npm package
In this post we will give you information about How to install a specific version of an Npm package. Hear we will give you detail about How to install a specific version of an Npm packageAnd how to use it also give you demo for it if it is necessary.
we are going to learn about how to install a specific version of a node package using npm.
When you install a new package using npm install <package-name> command it downloads the most recent(stable) version inside the node_modules folder and add it to the package.json file.
Installing a specific version
To install a specific version of a package, we need to use the npm install <packagename> command followed by the @version-number
npm install angular@6.2.1
The version has three numbers (6.2.1) which are major.minor.patch based on the semantic versioning rules.
For global installs, you need to add -g flag.
npm install -g @angular/cli@6.2.1
Hope this code and post will helped you for implement How to install a specific version of an Npm package. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs