Search code examples
node.jsnpmversioning

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.


Solution

  • You can use:

    npm view {pkg} version
    

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