244
votes

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
See here for listing all node modules.stackoverflow.com/questions/13981938/…Heartbit
This npm ls --depth=0 will list all local modules as name@version. `Heartbit
Or globals: npm -g ls --depth=0.Heartbit
Possible duplicate of npm view get more itemsHoldOffHunger

4 Answers

378
votes

Usually I do this if I want to see all versions

npm view webpack versions --json
25
votes

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

npm show webpack@* version
16
votes

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

1
votes

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

for webpack use npm show webpack versions