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 modules
.stackoverflow.com/questions/13981938/…
npm ls --depth=0
will list all local modules as name@version
. `
npm -g ls --depth=0
.
Usually I do this if I want to see all versions
npm view webpack versions --json
This is pretty much the same but won't list alpha or beta releases
npm show webpack@* version
npm show
npm view
and npm info
?
npm show 'webpack@*' version
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
Success story sharing
--json
flag formats it a bit nicer on my machine.