fix setup-nodejs
This commit is contained in:
parent
45359f3403
commit
21b6205653
9
mybashrc
9
mybashrc
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue