How to find the latest stable version of an npm pa

2019-05-27 05:48发布

问题:

This question covers how to get the npm CLI to show the latest version of a package:

npm view [PKG_NAME] version

But if I do npm view async version I get 2.0.0-rc.6, which is a release candidate.

Is there a command that will tell me the current stable version?

回答1:

If you want to list only the stable versions not the beta then

npm view bootstrap@* version

to install the latest stable version

npm install bootstrap@*


标签: npm