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 f7a6f30 commit a0bd30b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ 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 -
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 +172,7 @@ 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
# On newer nodejs versions (> Node 16) we solve this by setting unsafe-perm=true via .npmrc
# On newer nodejs versions (> Node 16) we solve this via the .npmrc settings unsafe-perm=true user=0
if [[ $ARCHITECTURE == "armv6l" ]]; then
sudo npm config set user 0
fi
Expand Down

0 comments on commit a0bd30b

Please sign in to comment.