Find the version of an installed npm package
Posted
by
Laurent Couvidou
on Stack Overflow
See other posts from Stack Overflow
or by Laurent Couvidou
Published on 2012-06-10T20:36:27Z
Indexed on
2012/11/09
11:02 UTC
Read the original article
Hit count: 244
How to find the local 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>
For some reason, probably because of the weird arguments ordering, or because of the false positives mentioned above, I just can't remember the proper command. So this question is a note for self that might help others.
© Stack Overflow or respective owner