uknowngithubuser
10/20/2018 - 5:03 PM

Node JS + NPM #ubuntu #shell

Node JS + NPM #ubuntu #shell

# Node JS

echo "Setting up Node JS"

# Setting up Prerequisities
sudo apt install -y curl

# Downloading files
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -

# Installing Node-js & NPM
sudo apt-get install -y nodejs
sudo apt install -y npm

# Verifying installation is seccessful
node -v
npm -v

# Setting up NPM globally
sudo npm install -y npm --global
sudo npm install -y npm@latest -g
sudo npm update -g

echo "Node JS Setup Completed"