|
@ -25,16 +25,28 @@ if ! command -v node &> /dev/null |
|
|
then |
|
|
then |
|
|
toolsok='no' |
|
|
toolsok='no' |
|
|
echo "No node found" |
|
|
echo "No node found" |
|
|
|
|
|
echo "" |
|
|
echo "Install: https://github.com/nodesource/distributions" |
|
|
echo "Install: https://github.com/nodesource/distributions" |
|
|
echo "Install it and try again!" |
|
|
echo "Install it and try again!" |
|
|
|
|
|
echo "" |
|
|
|
|
|
echo "-----------USING UBUNTU------------" |
|
|
|
|
|
echo "curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -" |
|
|
|
|
|
echo "sudo apt-get install -y nodejs" |
|
|
|
|
|
echo "" |
|
|
exit |
|
|
exit |
|
|
else |
|
|
else |
|
|
nodeversion=$(node -v | cut -d'.' -f1) |
|
|
nodeversion=$(node -v | cut -d'.' -f1) |
|
|
nodeversion="${nodeversion#v}" |
|
|
nodeversion="${nodeversion#v}" |
|
|
if [ $nodeversion -lt 15 ];then |
|
|
if [ $nodeversion -lt 15 ];then |
|
|
echo "node version < 15" |
|
|
echo "node version < 15" |
|
|
|
|
|
echo "" |
|
|
echo "Update: https://github.com/nodesource/distributions" |
|
|
echo "Update: https://github.com/nodesource/distributions" |
|
|
echo "Update it and try again!" |
|
|
echo "Update it and try again!" |
|
|
|
|
|
echo "" |
|
|
|
|
|
echo "-----------USING UBUNTU------------" |
|
|
|
|
|
echo "curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -" |
|
|
|
|
|
echo "sudo apt-get install -y nodejs" |
|
|
|
|
|
echo "" |
|
|
toolsok='no' |
|
|
toolsok='no' |
|
|
exit |
|
|
exit |
|
|
fi |
|
|
fi |
|
|