View All Versions of a npm Package

Quick tip today!

If you need to find all of the versions of a specific package on npm, you might find yourself going to the homepage and searching:

The npm versions tab selected on the npm page for next.js shows a list of the versions

But there is a quicker way!

Simply type:

npm v <package-name> versions

So for Next.js, it would be:

npm v next versions

And you'd see all the versions in your console:

The npm versions showing in a console after running `npm v next versions`

And that's it! 🎉

Npm
Avatar for Niall Maher

Written by Niall Maher

Founder of Codú - The web developer community! I've worked in nearly every corner of technology businesses; Lead Developer, Software Architect, Product Manager, CTO and now happily a Founder.

Loading

Fetching comments

Hey! 👋

Got something to say?

or to leave a comment.