From 3d1cf642d73d2e8742a3834fc629bde4dd788fff Mon Sep 17 00:00:00 2001 From: James Thompson Date: Thu, 6 Apr 2017 08:17:47 -0400 Subject: [PATCH] prompting to install node --- .gitignore | 1 + install.sh | 19 ++++++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 999433a..36a1823 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea .storage.json node_modules +*.swp diff --git a/install.sh b/install.sh index a02c5ac..bea3e52 100644 --- a/install.sh +++ b/install.sh @@ -9,14 +9,19 @@ curl -L https://github.com/daftlabs/dl-dev-profile/archive/master.tar.gz | tar - cd ${HERE} grep -q -F 'source ~/.daftlabs/bash_profile.sh' ~/.bash_profile || echo 'source ~/.daftlabs/bash_profile.sh' >> ~/.bash_profile -#install latest node and npm -rm -rf /usr/local/lib/node_modules -brew uninstall node -brew install node -brew link --overwrite node +echo "Install Node? [y/n]" +read install_node -#install dependencies -npm install +if [ $install_node == "y" ]; then + #install latest node and npm + rm -rf /usr/local/lib/node_modules + brew uninstall node + brew install node + brew link --overwrite node + + #install dependencies + npm install +fi #misc if [ ! -e ${HERE}/.storage.json ]; then