Update node in ubuntu 20.04

To update Node.js in Ubuntu 20.04, you can use the following steps:

Step 1: Update the package list

sudo apt update

Step 2: Install Node.js using NodeSource repository

curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -

Step 3: Install Node.js and npm

sudo apt install -y nodejs

Step 4: Verify the installation

node -v
npm -v

Step 5: Update npm to the latest version

sudo npm install -g npm

These steps will ensure that you have the latest version of Node.js installed on your Ubuntu 20.04 system.