Skip to content

Commit

Permalink
switch to node lts/gallium
Browse files Browse the repository at this point in the history
The latest nodejs lts/hydrogen v18.15.0 doesn't run on Ubuntu 18.04, it complains about GLIBC_2.28 not found. lts/gallium v16.19.1 works.
  • Loading branch information
buggsi committed Mar 8, 2023
1 parent 9df0003 commit 13db95c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if ! checkCommands "${array[@]}"; then
echo "Installing now (sudo permissions required)..."
command -v apt &>/dev/null && sudo apt install -y automake git zip wget # debian, ubuntu
command -v dnf &>/dev/null && sudo dnf install -y automake git zip wget # rhel, fedora, centos
command -v apk &>/dev/null && sudo apk add automake git zip wget # alpine
command -v apk &>/dev/null && sudo apk add automake git zip wget # alpine
sleep 2
fi

Expand Down Expand Up @@ -73,11 +73,13 @@ if ! command -v nvm &>/dev/null; then
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion

nvm install --lts
nvm install lts/gallium
npm install -g npm@latest
sleep 2
else
nvm use --lts
nvm install lts/gallium
npm install -g npm@latest
nvm use lts/gallium
fi

if ! command -v nyuu &>/dev/null; then
Expand Down
6 changes: 3 additions & 3 deletions pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ fi
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
nvm use --lts
nvm use lts/gallium

if (($RANDOM_LENGTH_FILE < 6)); then
echo "Random length should be > 6, change it in the config.env file."
if (($LENGTH_FILE < 6)) || (($LENGTH_PASSWORD < 6)); then
echo "Random length for filename or password should be > 6, change it in the config.env file."
exit 1
fi

Expand Down

0 comments on commit 13db95c

Please sign in to comment.