From a1749cf5e1b28f5f445d8a4974ac15a28ba29180 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Tue, 19 Mar 2013 01:16:26 -0400 Subject: [PATCH] making sure node.js and npm are installed before running install.sh --- install.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/install.sh b/install.sh index 8a8d85d..d175afb 100755 --- a/install.sh +++ b/install.sh @@ -3,6 +3,17 @@ cat LICENCE git submodule init git submodule update +if [ ! -e /usr/bin/node ] && [ ! -e /usr/local/bin/node ]; +then + echo 'node.js is not installed. Please install it before running install.sh.' + exit 1 +fi +if [ ! -e /usr/bin/npm ] && [ ! -e /usr/local/bin/npm ]; +then + echo 'npm is not installed. Please install it before running install.sh' + exit 1 +fi + npm install underscore request sandbox express moment jade@0.25 cd public/