-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequirements.sh
More file actions
executable file
·28 lines (26 loc) · 992 Bytes
/
requirements.sh
File metadata and controls
executable file
·28 lines (26 loc) · 992 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
set -e
set -x
# ----------------------------------------------------------------------------
# Install brew
# ----------------------------------------------------------------------------
case $(uname | tr '[:upper:]' '[:lower:]') in
linux*)
./linuxbrew/install.sh
;;
darwin*)
which brew || /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew unlink python@2 || echo "python@2 is already unlinked"
brew unlink go@1.15 || echo "go@1.15 is already unlinked"
# https://stackoverflow.com/posts/21520777/timeline
brew uninstall npm || echo "npm isn't installed"
brew uninstall node || echo "node isn't installed"
brew uninstall gnupg || echo "gnupg isn't installed"
npm uninstall npm -g || echo "npm packages isn't installed"
sudo rm -rf /usr/local/lib/node_modules
sudo rm -rf /usr/local/include/node
sudo rm -rf /usr/local/lib/node
;;
*)
echo "unsupported OS"
;;
esac