![]() ![]() On the other hand, if you would like to install the latest version of an npm package, use the same command but instead of specifying the version number, use the “latest” keyword like: npm install example, to install the latest version of React, the command would be npm install Example showing npm command to install the latest version of a package from the npm repository. How to install the latest version of a package in npm? If you notice, the command is very similar to the basic command to install a package, however, the only difference is the that follows the package name as a suffix. ![]() In order to install a specific version of npm package run the npm install command along with the package name followed by the version number prefixed with the at symbol Here is the syntax for the same: npm install example, let’s say I wanted to install React version 17.0.1, then the command would be : npm install Example showing npm command to install specific version of package ![]() 4 How to get all versions of package available on npm registry? How to install an exact or specific version of npm package? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |