如何找到 npm 包的最新稳定版本? [英] How to find the latest stable version of an npm package?
本文介绍了如何找到 npm 包的最新稳定版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这个问题涵盖了如何获取 npm CLI显示包的最新版本:
This question covers how to get the npm CLI to show the latest version of a package:
npm view [PKG_NAME] version
但是如果我执行 npm view async version
我得到 2.0.0-rc.6
,这是一个候选版本.
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?
推荐答案
如果您只想列出稳定版本而不是测试版,那么
If you want to list only the stable versions not the beta then
npm view bootstrap@* version
安装最新的稳定版本
npm install bootstrap@*
这篇关于如何找到 npm 包的最新稳定版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文