update nodejs debian 10 code example
Example 1: debian install node js
su -
apt install curl -y
curl -sL https://deb.nodesource.com/setup_14.x | bash -
apt install -y nodejs
Example 2: update node version debian
sudo npm cache clean -f
sudo npm install -g n
curl -sL https://deb.nodesource.com/setup_current.x | sudo bash -
sudo apt-get install nodejs