Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
JaapvanEkris authored Jan 31, 2024
1 parent d6d58f7 commit f77e7d8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ then
print "for ARM v6. Installing experimental unofficial build of Node.js..."

# we stick to node 14 as there are problem with WebAssembly on node 16 on the armv6l architecture
NODEJS_VERSION=v16.20.2
NODEJS_VERSION=v14.21.3
sudo rm -rf /opt/nodejs
sudo mkdir -p /opt/nodejs
sudo curl https://unofficial-builds.nodejs.org/download/release/$NODEJS_VERSION/node-$NODEJS_VERSION-linux-armv6l.tar.gz | sudo tar -xz --strip 1 -C /opt/nodejs/
Expand All @@ -142,8 +142,9 @@ then
sudo ln -sfn /opt/nodejs/bin/npm /usr/local/bin/npm
else
print "Installing Node.js..."
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
# curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
NODEJS_VERSION=v18
# curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs
fi

Expand Down Expand Up @@ -172,7 +173,10 @@ sudo git reset --hard origin/v1beta_updates_package_updates
echo "export PATH=\"\$PATH:$INSTALL_DIR/bin\"" >> ~/.bashrc

# otherwise node-gyp would fail while building the system dependencies
sudo npm config set user 0
# On newer nodejs versions (> Node 16) we solve this by setting unsafe-perm=true via .npmrc
if [[ $ARCHITECTURE == "armv6l" ]]; then
sudo npm config set user 0
fi

print
print "Downloading and compiling Runtime dependencies..."
Expand Down

0 comments on commit f77e7d8

Please sign in to comment.