0

How can I find the version of an installed Node.js or npm package?
This prints the version of npm itself:
npm -v

This prints a cryptic error:
npm version

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

How do I get the installed version?

Kuldeep Baberwal Changed status to publish January 28, 2025