How to find the version of an installed npm package

Overview

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.

Syntax

npm list packagename

Example

In the following example, we will get the version of an installed npm package, gulp.

Terminal 1
Terminal
Loading...

Explanation

We use the command, npm list gulp, to get the version of gulp.

Free Resources