I'm setting up a new Ubuntu (Eoan Ermine) 19.10 server and I noticed that
apt install nodejs gives you Node v10 which is an LTS (Long Term Support) version that'll last till April 2021. However, I want Node v12 which is the most recent LTS release as of April 2020.
To install it I used these instructions:
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - sudo apt-get install -y nodejs
That worked great.
When it finished, it spat out this nice little blurb about how to install
... Fetched 7454 B in 1s (12.3 kB/s) Reading package lists... Done ## Run `sudo apt-get install -y nodejs` to install Node.js 12.x and npm ## You may also need development tools to build native addons: sudo apt-get install gcc g++ make ## To install the Yarn package manager, run: curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update && sudo apt-get install yarn
By the way, I have no idea what
nodejs-mozilla but running
apt show nodejs-mozilla yields:
Installing it doesn't add a
node executable and I can't find a home page for it.
apt can be weird sometimes.