tomeshnet / prototype-cjdns-pi

Prototype system for mesh networks on single board computers
https://chat.tomesh.net/#/room/#software:tomesh.net
GNU General Public License v3.0
218 stars 42 forks source link

Update NodeJS to latest LTS (12.16.2) #483

Closed makew0rld closed 1 year ago

makew0rld commented 4 years ago

This is a small PR, but the biggest change is that armv6 is left behind. NodeJS no longer supports it, and so I've set it up to download the 10.x LTS instead. Should we be compiling our own versions of NodeJS for armv6 and 32-bit arches, which are stuck on the 8.x LTS? I opened #484 to talk about that. For now I think this can be merged.

makew0rld commented 4 years ago

This needs to be confirmed to work - that it can successfully install ssb, before merging. I have tried and it failed. I believe this is because ssb-server relies on the sodium-native pkg, at v2.4.2. I have not confirmed this myself, but it's what @darkdrgn2k said. As can be seen in this issue, only in v2.4.3 and above did sodium-native support building with Node v12. As such, using this newer Node version causes the command npm install ssb-server to fail.

makew0rld commented 4 years ago

On the ssb-server README they say to install Node v10 explicitly. We could use a solution like nvm to manage multiple Node versions, but unless some other part of the code needs a higher version than maybe this PR can stay unmerged.

darkdrgn2k commented 1 year ago

Moved to 14