sudo apt install nodejs npm -y
sudo npm install -g n
sudo n stable
close terminal and re-open,after that check node is updated
node --version
ref : statck overflow
sudo apt install nodejs npm -y
sudo npm install -g n
sudo n stable
close terminal and re-open,after that check node is updated
node --version
ref : statck overflow