From 054a963ca2a3577cc6424f424ee88cda13a5aa5c Mon Sep 17 00:00:00 2001 From: Gerhard Burger Date: Fri, 1 Aug 2025 20:32:38 +0200 Subject: [PATCH] Update homepage.sh to use setup_nodejs (#6462) --- ct/homepage.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/ct/homepage.sh b/ct/homepage.sh index 5aefb93e57..504cce7cc6 100644 --- a/ct/homepage.sh +++ b/ct/homepage.sh @@ -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..."