prototype-cjdns-pi
prototype-cjdns-pi copied to clipboard
Update NodeJS to latest LTS (12.16.2)
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.
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.
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.
Moved to 14