install node 14 in ubuntu code example
Example 1: install node js 14
sudo apt update
curl -sL https:
sudo apt -y install nodejs
node -v
# Install Node Development tools
sudo apt -y install gcc g++ make
# Install Yarn
curl -sL https:
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install yarn
Example 2: install nodejs latest version ubuntu
sudo apt update && sudo apt install curl -y
curl -sL https:
sudo apt install nodejs
nodejs -v
v15.3.0
Example 3: npm install ubuntu 20.04
$ sudo apt install nodejs