Some Bits: Nelson's log

Ubuntu vs NodeJS versions

Node seems to have some serious stability problems; various apps are sensitive to which version of Node you run. Here’s some recent versions:

  • Ubuntu 22.10 / kinetic: 18.7.0
  • 22.04 / jammy: 12.22.9
  • 20.04 / focal: 10.19.0

Nodesource packages different versions of NodeJS for Ubuntu. It’s basically a PPA but they want you to use their shell script to install them.

I ran into a problem with Nodesource where “apt install” really wanted to keep installing Ubuntu’s 18.7 despite having a PPA. I fixed that with apt install nodejs=14.21.1-deb-1nodesource1 to select a specific version.