In this tutorial, 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
To install a specific version of a package, we need to use the
npm install <packagename> command followed by the
npm install email@example.com
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
npm install -g @firstname.lastname@example.org