How do I use npm to show the latest version of a module? I am expecting something like npm --latest express to print out v3.0.0.
npm --latest express
v3.0.0
You can use:
npm show {pkg} version
(so npm show express version will return now 3.0.0rc3).
npm show express version
3.0.0rc3
If you're looking for the current and the latest versions of all your installed packages, you can also use:
npm outdated