How to change or upgrade the version of Node.js in Meteor

我只是一个虾纸丫 提交于 2021-02-19 01:32:18

问题


I am using Meteor in one of my project and as i checked node version used by meteor via going

/.meteor/local/build/.node_version.txt

. Its using v0.10.43 of node.js. I am using a module that can only be run on node.js version v4.0.0 or greater than that. So i am just wondoring to know that is there any way we can change the version of the node.js in Meteor application if yes than how we can change that. I have installed

node v5.8.0

locally in my ubuntu machine

Thanks


回答1:


Meteor 1.4 now supports Node 4.4.7! See release notes

To upgrade to Meteor 1.4:

  • Go to the root of your project's directory

  • meteor update




回答2:


Meteor does not support NodeJS 4+ as of now. The discussion is available in https://github.com/meteor/meteor/issues/5124

The latest update to the thread on April 29 is:

Guys, relax. The difference between Node version 4, 5 and 6 are relatively minor, and so if Meteor can support one, it can and will support all others. Ben created PRs for every currently active and supported Node version, but the fundamental part of the work is about making Meteor work with any (recent, non-legacy) Node version, and from there basically everyone should be able to freely select whichever one fits their goals and intentions best (i.e. 4.x if you don't care for bleeding edge Node, 6.x if you do; 5.x is not going to stick around for very long as it's not an LTS version).

So come and check out and help with the PRs if you're interested and you can, but if not, just rest assured this is being worked on and prioritized appropriately and I'm pretty sure Ben (and/or others working on this) will keep everyone posted on any meaningful progress.



来源:https://stackoverflow.com/questions/37693925/how-to-change-or-upgrade-the-version-of-node-js-in-meteor

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!