Browse Source

fix setup-nodejs

master
VirtuBox 5 months ago
parent
commit
21b6205653
Signed by: virtubox GPG Key ID: 22EB296C97BAD476
1 changed files with 4 additions and 5 deletions
  1. +4
    -5
      mybashrc

+ 4
- 5
mybashrc View File

@ -315,12 +315,11 @@ _INSTALL_NODEJS() {
echo "Example : setup-nodejs 12"
else
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
chmod +x nodejs.sh
./nodejs.sh
rm -f nodejs.sh
$NEED_SUDO apt-get install -y nodejs
}
_UPDATE_NPM() {


Loading…
Cancel
Save