How to list all versions of an npm module?

In order to see all the versions of a node module [webpack], I have executed below command in windows command prompt

npm view webpack versions

This command only displays first 100 versions and later displays "331 more" text.

How will I be able to list all versions?

4

4 Answers

Usually I do this if I want to see all versions

npm view webpack versions --json
3

This is pretty much the same but won't list alpha or beta releases

npm show webpack@* version
4

with yarn its just yarn info react-dnd versions, you can leave versions off for a lot of other info

you can view the available versions of any package using npm show <package_name> versions

for webpack use npm show webpack versions

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like