问题
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