Answers for "nodejs 12 ubuntu 20.04"

0

install nodejs 14 for ubuntu 20.04

sudo apt update
curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -

cat /etc/apt/sources.list.d/nodesource.list
deb https://deb.nodesource.com/node_14.x focal main
deb-src https://deb.nodesource.com/node_14.x focal main

sudo apt -y install nodejs

node -v
v14.18.2
Posted by: Guest on December-21-2021
0

ubuntu 20 lts install node 10

# install nodejs 10.x version 
sudo apt update
cd ~
curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh
# not important, but can be done
nano nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs
node install npm -g
node --version
npm --version
Posted by: Guest on January-18-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language