|
@ -17,15 +17,22 @@ fi |
|
|
|
|
|
|
|
|
NODEJS_VERSION=`nodejs -v 2>/dev/null` |
|
|
NODEJS_VERSION=`nodejs -v 2>/dev/null` |
|
|
if [ $? != 0 ]; then |
|
|
if [ $? != 0 ]; then |
|
|
NODE_VERSION=`node -v 2>/dev/null` |
|
|
echo "*** Missing NodeJS:" |
|
|
if [ $? != 0 ]; then |
|
|
echo " $ sudo apt-get install nodejs nodejs-legacy npm # may also be 'node'" |
|
|
echo "*** Missing NodeJS:" |
|
|
echo "" |
|
|
echo " $ sudo apt-get install nodejs npm # may also be 'node'" |
|
|
ERRORS=1 |
|
|
echo "" |
|
|
fi |
|
|
ERRORS=1 |
|
|
#echo "NodeJS version: $NODEJS_VERSION" |
|
|
fi |
|
|
|
|
|
|
|
|
# some tools like uglifyjs require 'node', not 'nodejs' |
|
|
|
|
|
NODE_VERSION=`node -v 2>/dev/null` |
|
|
|
|
|
if [ $? != 0 ]; then |
|
|
|
|
|
echo "*** Missing NodeJS legacy ('node' command):" |
|
|
|
|
|
echo " $ sudo apt-get install nodejs-legacy" |
|
|
|
|
|
echo "" |
|
|
|
|
|
ERRORS=1 |
|
|
fi |
|
|
fi |
|
|
#echo "Node version: $NODE_VERSION" |
|
|
#echo "NodeJS 'node' version: $NODE_VERSION" |
|
|
|
|
|
|
|
|
GIT_VERSION=`git --version 2>/dev/null` |
|
|
GIT_VERSION=`git --version 2>/dev/null` |
|
|
if [ $? != 0 ]; then |
|
|
if [ $? != 0 ]; then |
|
|