2

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?

Community
  • 1
  • 1
callum
  • 34,206
  • 35
  • 106
  • 163

1 Answers1

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@*
Yevgeniy Afanasyev
  • 37,872
  • 26
  • 173
  • 191