Node Update: Ubuntu

Wanted to update to latest stable node version for my ubuntu server 20.04

  • Command: lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.4 LTS
Release:        20.04
Codename:       focal
  • Clear the npm cache: npm cache clean -f
  • Install n : npm install -g n
  • Find versions of node on machine: n
  node/14.16.1
ο node/14.17.0	

Use up/down arrow keys to select a version, return key to install, d to delete, q to quit
  • Install latest stable: sudo n stable Long Term Support (LTS) lists it as 16
  • Check version installed n
  node/14.16.1
  node/14.17.0
ο node/16.14.1

Use up/down arrow keys to select a version, return key to install, d to delete, q to quit