377

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?

peterh
  • 11,875
  • 18
  • 85
  • 108
refactor
  • 13,954
  • 24
  • 68
  • 103

5 Answers5

584

Usually I do this if I want to see all versions

npm view webpack versions --json
Sumeet Kumar Yadav
  • 11,912
  • 6
  • 43
  • 80
52

NEW:

You now need to ask for versions instead of version

npm show webpack@* versions

OLD:

This won't list alpha or beta releases

npm show webpack@* version
danday74
  • 52,471
  • 49
  • 232
  • 283
25

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

russiansummer
  • 1,361
  • 15
  • 16
  • 1
    There is even a better way, if you type `yarn add @adfadf` yarn will prompt you with all the versions you can install from, you're welcome – vdegenne Dec 08 '22 at 21:15
9

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

for webpack use npm show webpack versions

kamula
  • 197
  • 2
  • 5
1

In the root of the package/module run:

npm view . versions
obotezat
  • 1,041
  • 16
  • 20