Update installed Node.js version from 11 to 12 (Ubuntu and CentOS)

pushover
Moe 2020-02-11 11:38:28 -08:00
parent 9f3a0e814f
commit d8c8177f9e
5 changed files with 14 additions and 14 deletions

View File

@ -50,7 +50,7 @@ fi
if ! [ -x "$(command -v node)" ]; then
echo "========================================================="
echo "Node.js not found, installing..."
sudo curl --silent --location https://rpm.nodesource.com/setup_11.x | bash -
sudo curl --silent --location https://rpm.nodesource.com/setup_12.x | bash -
sudo yum install nodejs -y
else
echo "Node.js is already installed..."

View File

@ -33,7 +33,7 @@ if ! [ -x "$(command -v node)" ]; then
echo "============="
echo "Shinobi - Installing Node.js"
#Installs Node.js 10
sudo curl --silent --location https://rpm.nodesource.com/setup_11.x | bash -
sudo curl --silent --location https://rpm.nodesource.com/setup_12.x | bash -
sudo yum install nodejs -y
else
echo "Node.js Found..."

View File

@ -3,11 +3,11 @@ echo "Shinobi - Do you want to Install Node.js?"
echo "(y)es or (N)o"
read -r nodejsinstall
if [ "$nodejsinstall" = "y" ]; then
wget https://deb.nodesource.com/setup_11.x
chmod +x setup_11.x
./setup_11.x
wget https://deb.nodesource.com/setup_12.x
chmod +x setup_12.x
./setup_12.x
sudo apt install nodejs -y
rm setup_11.x
rm setup_12.x
fi
#Detect Ubuntu Version

View File

@ -43,11 +43,11 @@ fi
if ! [ -x "$(command -v node)" ]; then
echo "============="
echo "Shinobi - Installing Node.js"
wget https://deb.nodesource.com/setup_11.x
chmod +x setup_11.x
./setup_11.x
wget https://deb.nodesource.com/setup_12.x
chmod +x setup_12.x
./setup_12.x
sudo apt install nodejs -y
rm setup_11.x
rm setup_12.x
else
echo "Node.js Found..."
echo "Version : $(node -v)"

View File

@ -43,11 +43,11 @@ fi
if ! [ -x "$(command -v node)" ]; then
echo "============="
echo "Shinobi - Installing Node.js"
wget https://deb.nodesource.com/setup_11.x
chmod +x setup_11.x
./setup_11.x
wget https://deb.nodesource.com/setup_12.x
chmod +x setup_12.x
./setup_12.x
sudo apt install nodejs -y
rm setup_11.x
rm setup_12.x
else
echo "Node.js Found..."
echo "Version : $(node -v)"