-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbootstrap.sh
More file actions
43 lines (38 loc) · 841 Bytes
/
Copy pathbootstrap.sh
File metadata and controls
43 lines (38 loc) · 841 Bytes
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
#!/bin/bash
# 2> means "redirect standard-error" to the given file.
# /dev/null is the null file. Anything written to it is discarded.
if which node >/dev/null 2>&1;
then
echo "Node and NPM already Installed"
else
yum -y install nodejs npm
echo "Node and NPM installed!"
fi
if which bower >/dev/null 2>&1;
then
echo "Bower already Installed"
else
npm install -g bower
echo "Bower installed!"
fi
if which gulp >/dev/null 2>&1;
then
echo "Gulp already Installed"
else
npm install -g gulp
echo "Gulp installed!"
fi
if which http-server >/dev/null 2>&1;
then
echo "HTTP Server already Installed"
else
npm install -g http-server
echo "HTTP Server installed!"
fi
if which nodemon >/dev/null 2>&1;
then
echo "Nodemon already Installed"
else
npm install -g nodemon
echo "Nodemon installed!"
fi