Writing
How to find the version of an installed npm package?
1 min read
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.