how to upgrade node js in linux code example
Example 1: upgrade node ubuntu
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
Example 2: linux command to update nodejs
sudo apt-get install xz-utils
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
sudo apt-get install xz-utils