Update homepage.sh to use setup_nodejs (#6462)

This commit is contained in:
Gerhard Burger 2025-08-01 20:32:38 +02:00 committed by GitHub
parent b366ffac34
commit 054a963ca2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,14 +27,9 @@ function update_script() {
msg_error "No ${APP} Installation Found!"
exit
fi
if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then
if ! command -v npm >/dev/null 2>&1; then
echo "Installing NPM..."
$STD apt-get install -y npm
$STD npm install -g pnpm
echo "Installed NPM..."
fi
fi
NODE_VERSION="22" NODE_MODULE="pnpm@latest" setup_nodejs
# ensure that jq is installed
if ! command -v jq &>/dev/null; then
$STD msg_info "Installing jq..."