1
0
Fork 0

fix setup-nodejs

This commit is contained in:
VirtuBox 2020-08-10 16:24:59 +02:00
parent 45359f3403
commit 21b6205653
Signed by: virtubox
GPG Key ID: 22EB296C97BAD476
1 changed files with 4 additions and 5 deletions

View File

@ -315,12 +315,11 @@ _INSTALL_NODEJS() {
echo "Example : setup-nodejs 12" echo "Example : setup-nodejs 12"
else else
wget -O nodejs.sh https://deb.nodesource.com/setup_"$1".x wget -O nodejs.sh https://deb.nodesource.com/setup_"$1".x
chmod +x nodejs.sh
./nodejs.sh
rm -f nodejs.sh
$NEED_SUDO apt-get install -y nodejs
fi fi
chmod +x nodejs.sh
./nodejs.sh
rm -f nodejs.sh
$NEED_SUDO apt-get install -y nodejs
} }
_UPDATE_NPM() { _UPDATE_NPM() {