How to list all versions of an npm module?
node.jsNpmnode.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