Skip to main content

How to find the version of an installed npm package?

1 min read

Older Article

This article was published 8 years ago. Some information may be outdated or no longer applicable.

Node.js projects tend to accumulate dependencies fast. You’ll also end up with packages installed globally. At some point, you’ll want to know which version of what is actually installed.

There’s a single npm command that handles this, and you can use it three ways:

  • To see globally installed package versions: npm list -g
  • To see all package versions for the current project: npm list
  • To check a specific package version: npm list [package-name]

Each returns the relevant package information.