Last active
November 7, 2017 04:24
-
-
Save mansurali901/b689efe7aa11a7a86eb919c3a4c7d773 to your computer and use it in GitHub Desktop.
Setup Bower NPM & Node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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