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?
Description. This command shows data about a package and prints it to stdout. The default version is "latest" if unspecified. "Person" fields are shown as a string if they would be shown as an object.
Note: The npm list command doesn’t only show the installed version of packages, but also their dependencies (version). For globally installed packages, you can use the npm list -g command. Installed version of a particular package
npm list - returns versions of all modules and dependencies. npm view <package> version, goes to the npm remote registry, not local filesystem... @AlexanderMills True, but having it here avoids another search for that. Btw, npm v, npm info and npm show are all alias of npm view.
npm list --depth=0 - returns versions of all installed modules without dependencies. npm list - returns versions of all modules and dependencies. npm view <package> version, goes to the npm remote registry, not local filesystem... @AlexanderMills True, but having it here avoids another search for that.
The npm ls command helps us to list (view) all versions of installed packages and their dependencies in the terminal.
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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With