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.

New on Educative
Learn to Code
Learn any Language as a beginner
Develop a human edge in an AI powered world and learn to code with AI from our beginner friendly catalog
🏆 Leaderboard
Daily Coding Challenge
Solve a new coding challenge every day and climb the leaderboard

Free Resources