install node last code example
Example 1: update nodejs mac
sudo npm cache clean -f
sudo npm install -g n
sudo n stable/lts
Example 2: node js download ubuntu
sudo apt install nodejs
sudo npm cache clean -f
sudo npm install -g n
sudo n stable/lts
sudo apt install nodejs