Run these shell commands on your Ubuntu computer to install NodeJS 14.x:
sudo apt -y install curl curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - sudo apt-get install -y nodejs
Instead of setup_16.x
you can also choose other versions like setup_14.x
. However, using this method, you can’t install multiple versions of NodeJS in parallel.