Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm - how to show the latest version of a package

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.

like image 903
Trantor Liu Avatar asked Aug 14 '12 09:08

Trantor Liu


People also ask

How do I check the version of an NPM package?

To check the installed version of a particular package, you can use the npm list command by specifying a package name. If you want to check the latest version of a package available in npm repository, you can use the npm view package-name version command.


1 Answers

You can use:

npm show {pkg} version 

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

like image 82
CD.. Avatar answered Sep 27 '22 21:09

CD..