Nodejs npm show latest version of a package


Question

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.

1
262
4/3/2019 1:36:35 AM

Accepted Answer

You can use:

npm show {pkg} version

(so npm show express version will return now 3.0.0rc3).

392
8/14/2012 9:33:04 AM

If you're looking for the current and the latest versions of all your installed packages, you can also use:

npm outdated


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon