node.js 如何列出 npm 模块的所有版本?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/41415945/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to list all versions of an npm module?
提问by refactor
In order to see all the versions of a node module [webpack], I have executed below command in windows command prompt
为了查看节点模块 [webpack] 的所有版本,我在 windows 命令提示符下执行了以下命令
npm view webpack versions
This command only displays first 100 versions and later displays "331 more" text.
此命令仅显示前 100 个版本,稍后显示“331 个更多”文本。
How will I be able to list all versions?
我如何能够列出所有版本?
回答by Sumeet
Usually I do this if I want to see all version
如果我想查看所有版本,通常我会这样做
npm view webpack versions --json
回答by danday74
This is pretty much the same but won't list alpha or beta releases
这几乎相同,但不会列出 alpha 或 beta 版本
npm show webpack@* version
回答by russiansummer
with yarn its just yarn info react-dnd versions, you can leave versions off for a lot of other info
使用纱线只是yarn info react-dnd versions,您可以将版本关闭以获取许多其他信息

