NPM stands for Node Package Manager. It is a package manager for JavaScript.
In this shot, we'll learn how to find the version of an installed npm
package.
The command npm list
will list out all the npm
packages installed on our machine.
If we provide the package name at the end of the npm list
command, we'll get the version of that specific npm package.
npm list packagename
In the following example, we will get the version of an installed npm
package, gulp
.
We use the command, npm list gulp
, to get the version of gulp
.