我如何知道我的流星应用程序正在使用的节点版本? [英] How can I know the version of node being used by my meteor app?

查看:25
本文介绍了我如何知道我的流星应用程序正在使用的节点版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在linux下安装过meteor,不知道meteor用的是哪个版本的node.js

I have installed meteor under linux, and I don't really know which version of node.js meteor is using.

推荐答案

Answer for MacOS and Meteor > v1.1

node 二进制文件驻留在流星工具的 dev_bundle 中:

The node binary resides in the dev_bundle of the meteor-tool:

~/.meteor/packages/meteor-tool/1.1.3/mt-os.osx.x86_64/dev_bundle/bin

~/.meteor/packages/meteor-tool/1.1.3/mt-os.osx.x86_64/dev_bundle/bin

$ cd ~/.meteor/packages/meteor-tool/1.1.3/mt-os.osx.x86_64/dev_bundle/bin
$ ./node -v
v0.10.36

注意:meteor-tool 版本与 Meteor 版本匹配,但在 99% 的情况下,您可以假设最新版本用于您当前的 Meteor.

Note: The meteor-tool version does not match the version of Meteor, but in 99% of the cases you can assume that the latest version is used for your current Meteor.

至少在Meteor >= 1.5中你还可以直接访问与Meteor捆绑的NodeJS并找出版本:

At least in Meteor >= 1.5 you can also directly access the NodeJS bundled with Meteor and find out the version:

meteor node -v

感谢 Mickael 指出这一点.

这篇关于我如何知道我的流星应用程序正在使用的节点版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆