install nodejs on chromebook code example

Example 1: how to Install nodejs on a chromebook

step 1: open a termnal
step 2: type the folowing Into a termnal
sudo apt-get update
sudo apt-get install curl gnupg -y
curl -sl https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt-get install -y nodejs

this installs nodeJS v13.12.0

Example 2: how to install node js on chromebook

#Step1 Install Linux (Beta) on chromebook
#Step2 Open Termonal
#Step3 Type:
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
#Step4 Type:
sudo apt install nodejs
#This installs NodeJS Version 14.x