javascript 如何在 Windows 上检查 Meteor.js 的版本
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17800025/
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 check the version of Meteor.js on Windows
提问by Nyxynyx
I installed Meteor for Windows and want to know what version of Meteor I have installed to decide if its time to update. How can this be done?
我为 Windows 安装了 Meteor,想知道我安装了哪个版本的 Meteor 以决定是否该更新。如何才能做到这一点?
meteor update
does not work on Windows yet.
meteor update
还不能在 Windows 上工作。
meteor --version
returns the message Unreleased (running from a checkout)
meteor --version
返回消息 Unreleased (running from a checkout)
采纳答案by StephenD
If you installed the Windows version via the MSI, you can look in the standard windows add/remove programs wizard to see what version you have.
如果您通过 MSI 安装了 Windows 版本,您可以在标准的 Windows 添加/删除程序向导中查看您拥有的版本。
The version of Meteor for Windows you are using does not use the 'warehouse' and therefore Meteor always uses a version of 'none'. There is an experimental version of Meteor for Windows which does use the warehouse available at: https://github.com/sdarnell/meteor/wiki/Windows
您使用的 Windows 版 Meteor 版本不使用“仓库”,因此 Meteor 始终使用“无”版本。有一个适用于 Windows 的 Meteor 实验版本,它确实使用了以下可用的仓库:https: //github.com/sdarnell/meteor/wiki/Windows
回答by SoEzPz
In the project folder, in command line try this...
在项目文件夹中,在命令行中试试这个...
meteor --version
回答by Aditya M P
If you have access to the Meteor CLI, meteor show meteor
has interesting output. This is what I got:
如果您可以访问 Meteor CLI,就会meteor show meteor
有有趣的输出。这是我得到的:
$ meteor show meteor
Package: [email protected]
Maintainers: mdg
Exports: Meteor
This is an internal Meteor package.
Recent versions:
1.1.5 March 18th, 2015
1.1.6 April 1st, 2015
1.1.7 September 22nd, 2015
1.1.9 September 29th, 2015
1.1.10 October 27th, 2015 installed
Older and pre-release versions of meteor have been hidden. To see all 73 versions, run 'meteor show --show-all meteor'.
回答by flylib
cd into your hidden .meteor folder and open up the release file inside the folder, it will have the version number
cd 进入你隐藏的 .meteor 文件夹并打开文件夹内的发布文件,它会有版本号
$ cd .meteor
$ nano release
$ cd .meteor
$ nano 发行版
回答by evenfrost
FYI, you can always check this in the browser with Meteor.release
command put in devtools console of your Meteor app page.
仅供参考,您始终可以使用Meteor.release
在 Meteor 应用程序页面的 devtools 控制台中放置的命令在浏览器中检查这一点。