Find the version of an installed npm package
Asked 07 September, 2021
Viewed 1.7K times
  • 64
Votes

How to find the version of an installed node.js/npm package?

This prints the version of npm itself:

npm -v <package-name>

This prints a cryptic error:

npm version <package-name>

This prints the package version on the registry (i.e. the latest version available):

npm view <package-name> version

How do I get the installed version?

30 Answer