How to list all versions of an npm module?

node.jsNpm

node.js Problem Overview


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?

node.js Solutions


Solution 1 - node.js

Usually I do this if I want to see all versions

npm view webpack versions --json

Solution 2 - node.js

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

npm show webpack@* version

Solution 3 - node.js

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

Solution 4 - node.js

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

for webpack use npm show webpack versions

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionrefactorView Question on Stackoverflow
Solution 1 - node.jsSumeet Kumar YadavView Answer on Stackoverflow
Solution 2 - node.jsdanday74View Answer on Stackoverflow
Solution 3 - node.jsrussiansummerView Answer on Stackoverflow
Solution 4 - node.jskamulaView Answer on Stackoverflow