This is a note to self on how to upgrade Node.js on Ubuntu.

’n'

The ’n’ module provides a simple way to manage Node.js versions: Install the ’n’ module globally using the following command:

sudo npm install -g n

Upgrade to the latest stable version

sudo n stable

Upgrade to the latest version

To upgrade the latest version of Node.js use the following command:

sudo n latest

Then verify the installation using:

node -v