I think the whole Meteor 3 work is an example why it is not that easy or desired. Meteor has many parts some very closely integrated into Node and some not so much. Some packages that Meteor uses change and evolve including their names and APIs.
I guess @trusktr’s point is that given this is a +2 -2 diff, it would make a lot of sense to make this configurable instead of having to release a patched version of the code every time there is a security patch for Node. Meteor could implement some warning when the version is different from the default one. The severity of the warning could depend on how distant the configured version is from the default one (major, minor, patch).
The PR I moved as an example is just the first step. You then need to do quiet a few more things before you have something workable. One of them is to check that the whole thing actually runs and make any changes as necessary.
We have a different approach: I think it is a bad idea in general to somehow rely on a “random” version of node. So, instead of using any kind of global node, we always use the node version that is shipped with meteor. What we do:
We have a bin directory…
in this bin directory, I symlink to meteor node
then in an activate-meteor (similar to python venv activate) I set the PATH to point to the correct version of node
Note this will not work on Windows (we gave up supporting windows for complex apps because scripting is very different on Windows, and it does not support symlinks (to files))
First I build Linux amd64 bundle. Then at each OS/CPU, I make some changes, like install fibers, that is required to be built for each OS, with build-bundle scripts here:
Although currently Node.js 14 does segmentation fault at s390x, so I’m trying to upgrade to Meteor 3:
Previously I did also build for ppc64le, but then OpenPower Minicloud was closed:
I did previously get building with Meteor working also at Linux arm64 with that In Progress PR, but after that when I tried it did not work anymore, I’ll try again later, that PR is not yet merged to Meteor: