MineOS Node to use Node v8


#1

I’m making the change to Node v8 for MineOS.

I’ve tried this before with 5.x and 6.x with huge failures, but 8.x somehow magically works like one could only dream.

I’m updating all the documentation to reflect this new adoption of 8.x, which I fully expect to work as well as 4.x if not better, based on the test suites having run ridiculously cleanly. However, should issues exist that I haven’t created tests for, here is where I’d love to hear from it. Please do provide any /var/log/mineos.logs you might have, and any errors that npm install outputs.

Hopefully this will go nice and smoothly.

Anywhere where I have scripts that download 4.x, please let me know where they exist (they should all be updated), same with any documentation that suggests 4.x instead of 8.x Thanks for all your help!


#2

#3

Is the “ordinary” way of updating still valid? (https://minecraft.codeemo.com/mineoswiki/index.php?title=Updating_the_Webui), or are there extra steps due to the node upgrade?

refrasing: updating the webui do not update node? We have to update node first then webui?


#4

After upgrading node, you’ll want to reset the scripts. The step rm -rf node_modules clears out a number of modues (namely posix, userid) that actually compile, rather than just download.

It probably would suffice to just do npm install, but seeing as how it’s a fresh node install, and how deleting node_modules is pretty much entirely safe, I figure we might as well just ensure no cruft sticks around.

tl;dr “Reset” the scripts after node upgrade.