diff --git a/install.sh b/install.sh index bdb1c40..78db32b 100755 --- a/install.sh +++ b/install.sh @@ -25,16 +25,28 @@ if ! command -v node &> /dev/null then toolsok='no' echo "No node found" + echo "" echo "Install: https://github.com/nodesource/distributions" 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 else nodeversion=$(node -v | cut -d'.' -f1) nodeversion="${nodeversion#v}" if [ $nodeversion -lt 15 ];then echo "node version < 15" + echo "" echo "Update: https://github.com/nodesource/distributions" 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' exit fi