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 . 回答1: You can use: npm show {pkg} version (so npm show express version will return now 3.0.0rc3 ). 回答2: If you're looking for the current and the latest versions of all your installed packages, you can also use: npm outdated 回答3: As of October 2014 : For latest remote version: npm view <module_name> version Note, version is singular. If you'd like to see all