0
Q:

ubuntu update nodejs

sudo npm cache clean -f
sudo npm install -g n
sudo n stable
2
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs
1
npm cache clean -f

npm install -g n

install latest Node.js with npm n mmodule

Note:- With the n module installed, following you can use it to:
Install the latest stable version: n stable
Install the latest release: n latest
Install a specific version: n [version.number]
1
# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt-get install -y nodejs

# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_13.x | bash -
apt-get install -y nodejs
0
# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs

# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_12.x | bash -
apt-get install -y nodejs
-1
# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
-1
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
0

New to Communities?

Join the community