-
Notifications
You must be signed in to change notification settings - Fork 0
/
node.sh
executable file
·45 lines (37 loc) · 1.09 KB
/
node.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
#
# Created by Morgan Hein
# Installs Nodejs, NPM, Yeoman and gems
# Text color variables
und=$(tput sgr 0 1) # Underline
bold=$(tput bold) # Bold
red=$(tput setaf 1) # Red
blue=$(tput setaf 4) # Blue
wht=$(tput setaf 7) # White
reset=$(tput sgr0) # Reset
redbold=${red}${bold}
aptitude update > /dev/null
aptitude install -y python-software-properties python g++ make > /dev/null
echo -e $blue'Installing Node.js'$reset
add-apt-repository ppa:chris-lea/node.js
aptitude update > /dev/null
aptitude install -y nodejs
echo -e $blue'Current Node Version: '$reset
node -v
echo -e $blue'Current NPM Version: '$reset
npm -v
echo -e $blue'Done\n'$reset
echo -e $blue'Updating Node.js/NPM'$reset
npm update
npm update npm -g
echo -e $blue'Current Node Version: '$reset
node -v
echo -e $blue'Current NPM Version: '$reset
npm -v
echo -e $blue'Done\n'$reset
echo -e $blue'Updating packages'$reset
npm update -g
echo -e $blue'Done\n'$reset
echo -e $blue'Installing Yeoman and gems'$reset
npm install -g yo compass grunt-cli bower generator-angular
echo -e $blue'Done\n'$reset