Skip to content

Instantly share code, notes, and snippets.

@mansurali901
Last active November 7, 2017 04:24
Show Gist options
  • Save mansurali901/b689efe7aa11a7a86eb919c3a4c7d773 to your computer and use it in GitHub Desktop.
Save mansurali901/b689efe7aa11a7a86eb919c3a4c7d773 to your computer and use it in GitHub Desktop.
Setup Bower NPM & Node
#!/bin/bash
# This script is written to install Bower Node and NPM
# on Ubuntu Server 16.04 & 14.04 LTS
# Author Mansur Ul Hasan
# Email [email protected]
install_proc () {
echo "Downloading Source Setup"
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sleep 2
echo "Installing Packages"
apt-get install nodejs
node --version
sleep 1
npm --version
sleep 1
echo "Installing Bower with Global Configurations"
npm install -g bower
bower --version
}
PreReq() {
echo "Installing Pre-requisites for Bower"
apt-get install software-properties-common -y
echo "Calling Installation Function"
install_proc
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment