How do I use npm to show the latest version of a module? I am expecting something like npm --latest express
to print out v3.0.0
.
To check the installed version of a particular package, you can use the npm list command by specifying a package name. If you want to check the latest version of a package available in npm repository, you can use the npm view package-name version command.
You can use:
npm show {pkg} version
(so npm show express version
will return now 3.0.0rc3
).
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