From fb7ceab9892fb6479173eae8fb3b41efbb15fd01 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Sun, 21 Jun 2026 22:05:32 +0200 Subject: [PATCH] fix(tools): only use corepack where scripts actually need it Remove bulk corepack prefix from global pnpm/yarn installs and limit corepack enable in setup_nodejs to explicit corepack modules or Node 25+. Co-authored-by: Cursor --- ct/dashy.sh | 2 +- ct/docmost.sh | 2 +- ct/elementsynapse.sh | 2 +- ct/excalidraw.sh | 2 +- ct/flowiseai.sh | 2 +- ct/fumadocs.sh | 2 +- ct/ghost.sh | 2 +- ct/homepage.sh | 2 +- ct/jellyseerr.sh | 2 +- ct/joplin-server.sh | 2 +- ct/jotty.sh | 2 +- ct/koillection.sh | 2 +- ct/mealie.sh | 2 +- ct/monica.sh | 2 +- ct/musicseerr.sh | 2 +- ct/nginxproxymanager.sh | 2 +- ct/papra.sh | 2 +- ct/peanut.sh | 2 +- ct/rwmarkable.sh | 2 +- ct/seerr.sh | 2 +- ct/sparkyfitness.sh | 2 +- ct/streamlink-webui.sh | 2 +- ct/tandoor.sh | 2 +- ct/tianji.sh | 2 +- ct/web-check.sh | 2 +- ct/wikijs.sh | 2 +- ct/wishlist.sh | 2 +- ct/zigbee2mqtt.sh | 2 +- ct/zipline.sh | 2 +- install/adventurelog-install.sh | 2 +- install/anchor-install.sh | 2 +- install/dashy-install.sh | 2 +- install/docmost-install.sh | 2 +- install/docuseal-install.sh | 2 +- install/elementsynapse-install.sh | 2 +- install/erpnext-install.sh | 2 +- install/excalidraw-install.sh | 2 +- install/fumadocs-install.sh | 2 +- install/ghost-install.sh | 2 +- install/grist-install.sh | 2 +- install/homepage-install.sh | 2 +- install/joplin-server-install.sh | 2 +- install/jotty-install.sh | 2 +- install/kan-install.sh | 2 +- install/karakeep-install.sh | 2 +- install/koel-install.sh | 2 +- install/koillection-install.sh | 2 +- install/lobehub-install.sh | 2 +- install/mafl-install.sh | 2 +- install/mealie-install.sh | 2 +- install/meilisearch-install.sh | 2 +- install/monica-install.sh | 2 +- install/musicseerr-install.sh | 2 +- install/nginxproxymanager-install.sh | 2 +- install/open-archiver-install.sh | 2 +- install/paperclip-install.sh | 2 +- install/papra-install.sh | 2 +- install/peanut-install.sh | 2 +- install/seerr-install.sh | 2 +- install/sparkyfitness-install.sh | 2 +- install/split-pro-install.sh | 2 +- install/storybook-install.sh | 2 +- install/streamlink-webui-install.sh | 2 +- install/tandoor-install.sh | 2 +- install/tasmocompiler-install.sh | 2 +- install/teable-install.sh | 2 +- install/tianji-install.sh | 2 +- install/umami-install.sh | 2 +- install/web-check-install.sh | 2 +- install/wikijs-install.sh | 2 +- install/wishlist-install.sh | 2 +- install/zigbee2mqtt-install.sh | 2 +- install/zipline-install.sh | 2 +- misc/tools.func | 2 -- 74 files changed, 73 insertions(+), 75 deletions(-) diff --git a/ct/dashy.sh b/ct/dashy.sh index 686e335e32..4a54882564 100644 --- a/ct/dashy.sh +++ b/ct/dashy.sh @@ -29,7 +29,7 @@ function update_script() { exit fi - NODE_VERSION="24" NODE_MODULE="corepack,yarn" setup_nodejs + NODE_VERSION="24" NODE_MODULE="yarn" setup_nodejs if check_for_gh_release "dashy" "Lissy93/dashy"; then msg_info "Stopping Service" diff --git a/ct/docmost.sh b/ct/docmost.sh index 32aba58f8b..c3392c585e 100644 --- a/ct/docmost.sh +++ b/ct/docmost.sh @@ -28,7 +28,7 @@ function update_script() { exit fi if ! command -v node >/dev/null || [[ "$(/usr/bin/env node -v | grep -oP '^v\K[0-9]+')" != "22" ]]; then - NODE_VERSION="22" NODE_MODULE="corepack,pnpm@$(curl -s https://raw.githubusercontent.com/docmost/docmost/main/package.json | jq -r '.packageManager | split("@")[1]')" setup_nodejs + NODE_VERSION="22" NODE_MODULE="pnpm@$(curl -s https://raw.githubusercontent.com/docmost/docmost/main/package.json | jq -r '.packageManager | split("@")[1]')" setup_nodejs fi export NODE_OPTIONS="--max_old_space_size=4096" diff --git a/ct/elementsynapse.sh b/ct/elementsynapse.sh index 159ebb2911..1d2c431656 100644 --- a/ct/elementsynapse.sh +++ b/ct/elementsynapse.sh @@ -29,7 +29,7 @@ function update_script() { exit fi - NODE_VERSION="22" NODE_MODULE="corepack,yarn" setup_nodejs + NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs msg_info "Updating LXC" $STD apt update diff --git a/ct/excalidraw.sh b/ct/excalidraw.sh index 773dd56d8c..14db7843d7 100644 --- a/ct/excalidraw.sh +++ b/ct/excalidraw.sh @@ -30,7 +30,7 @@ function update_script() { exit fi - NODE_VERSION="24" NODE_MODULE="corepack,yarn" setup_nodejs + NODE_VERSION="24" NODE_MODULE="yarn" setup_nodejs if check_for_gh_release "excalidraw" "excalidraw/excalidraw"; then msg_info "Stopping Service" diff --git a/ct/flowiseai.sh b/ct/flowiseai.sh index 9d31f69bd2..7d4c6468e6 100644 --- a/ct/flowiseai.sh +++ b/ct/flowiseai.sh @@ -29,7 +29,7 @@ function update_script() { exit fi - NODE_VERSION="22" NODE_MODULE="corepack,pnpm" setup_nodejs + NODE_VERSION="22" NODE_MODULE="pnpm" setup_nodejs msg_info "Updating FlowiseAI (this may take some time)" systemctl stop flowise diff --git a/ct/fumadocs.sh b/ct/fumadocs.sh index b43e7babea..dc673872b1 100644 --- a/ct/fumadocs.sh +++ b/ct/fumadocs.sh @@ -35,7 +35,7 @@ function update_script() { exit fi - NODE_VERSION="24" NODE_MODULE="corepack,pnpm@latest" setup_nodejs + NODE_VERSION="24" NODE_MODULE="pnpm@latest" setup_nodejs PROJECT_NAME=$(>/opt/koillection/.env.local echo 'APP_RUNTIME="Symfony\Component\Runtime\SymfonyRuntime"' >>/opt/koillection/.env.local fi - NODE_VERSION="26" NODE_MODULE="corepack,yarn" setup_nodejs + NODE_VERSION="26" NODE_MODULE="yarn" setup_nodejs cd /opt/koillection export COMPOSER_ALLOW_SUPERUSER=1 export APP_RUNTIME='Symfony\Component\Runtime\SymfonyRuntime' diff --git a/ct/mealie.sh b/ct/mealie.sh index fa1d2b1d96..1f3631ccc9 100644 --- a/ct/mealie.sh +++ b/ct/mealie.sh @@ -31,7 +31,7 @@ function update_script() { fi if check_for_gh_release "mealie" "mealie-recipes/mealie"; then PYTHON_VERSION="3.12" setup_uv - NODE_MODULE="corepack,yarn" NODE_VERSION="24" setup_nodejs + NODE_MODULE="yarn" NODE_VERSION="24" setup_nodejs msg_info "Stopping Service" systemctl stop mealie diff --git a/ct/monica.sh b/ct/monica.sh index 17e05bbf6f..9d4172ac98 100644 --- a/ct/monica.sh +++ b/ct/monica.sh @@ -30,7 +30,7 @@ function update_script() { fi setup_mariadb - NODE_VERSION="22" NODE_MODULE="corepack,yarn@latest" setup_nodejs + NODE_VERSION="22" NODE_MODULE="yarn@latest" setup_nodejs # Fix for previous versions not having cronjob if ! grep -Fq 'php /opt/monica/artisan schedule:run' /etc/crontab; then diff --git a/ct/musicseerr.sh b/ct/musicseerr.sh index 4040f7d02d..f7aa74e6dc 100644 --- a/ct/musicseerr.sh +++ b/ct/musicseerr.sh @@ -42,7 +42,7 @@ function update_script() { PYTHON_VERSION="3.13" setup_uv CLEAN_INSTALL=1 fetch_and_deploy_gh_release "musicseerr" "HabiRabbu/Musicseerr" "tarball" - NODE_VERSION="25" NODE_MODULE="corepack,pnpm@10.33.0" setup_nodejs + NODE_VERSION="25" NODE_MODULE="pnpm@10.33.0" setup_nodejs msg_info "Building Frontend" cd /opt/musicseerr/frontend diff --git a/ct/nginxproxymanager.sh b/ct/nginxproxymanager.sh index 69e4320fcf..71b4939f65 100644 --- a/ct/nginxproxymanager.sh +++ b/ct/nginxproxymanager.sh @@ -42,7 +42,7 @@ function update_script() { fi fi - NODE_VERSION="22" NODE_MODULE="corepack,yarn" setup_nodejs + NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs if dpkg -s openresty &>/dev/null 2>&1; then msg_info "Migrating from packaged OpenResty to source" diff --git a/ct/papra.sh b/ct/papra.sh index df2c930082..9e4fed2215 100644 --- a/ct/papra.sh +++ b/ct/papra.sh @@ -44,7 +44,7 @@ function update_script() { CLEAN_INSTALL=1 fetch_and_deploy_gh_release "papra" "papra-hq/papra" "tarball" pnpm_version=$(grep -oP '"packageManager":\s*"pnpm@\K[^"]+' /opt/papra/package.json) - NODE_VERSION="26" NODE_MODULE="corepack,pnpm@$pnpm_version" setup_nodejs + NODE_VERSION="26" NODE_MODULE="pnpm@$pnpm_version" setup_nodejs msg_info "Building Application" cd /opt/papra diff --git a/ct/peanut.sh b/ct/peanut.sh index 99da4e8033..d9ac514756 100644 --- a/ct/peanut.sh +++ b/ct/peanut.sh @@ -29,7 +29,7 @@ function update_script() { exit fi - NODE_VERSION="24" NODE_MODULE="corepack,pnpm" setup_nodejs + NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs if check_for_gh_release "PeaNUT" "Brandawg93/PeaNUT"; then msg_info "Stopping Service" diff --git a/ct/rwmarkable.sh b/ct/rwmarkable.sh index aa58c8249f..1a037d309f 100644 --- a/ct/rwmarkable.sh +++ b/ct/rwmarkable.sh @@ -34,7 +34,7 @@ function update_script() { systemctl -q disable --now rwmarkable msg_ok "Stopped Service" - NODE_VERSION="22" NODE_MODULE="corepack,yarn" setup_nodejs + NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs CLEAN_INSTALL=1 fetch_and_deploy_gh_release "jotty" "fccview/jotty" "tarball" "latest" "/opt/jotty" msg_info "Updating app" diff --git a/ct/seerr.sh b/ct/seerr.sh index d8ab6d5cf5..4ea49c8f88 100644 --- a/ct/seerr.sh +++ b/ct/seerr.sh @@ -133,7 +133,7 @@ EOF msg_info "Updating PNPM Version" pnpm_desired=$(grep -Po '"pnpm":\s*"\K[^"]+' /opt/seerr/package.json) - NODE_VERSION="22" NODE_MODULE="corepack,pnpm@$pnpm_desired" setup_nodejs + NODE_VERSION="22" NODE_MODULE="pnpm@$pnpm_desired" setup_nodejs msg_ok "Updated PNPM Version" msg_info "Updating Seerr" diff --git a/ct/sparkyfitness.sh b/ct/sparkyfitness.sh index 2adc9a5191..5954b0bee4 100644 --- a/ct/sparkyfitness.sh +++ b/ct/sparkyfitness.sh @@ -48,7 +48,7 @@ function update_script() { CLEAN_INSTALL=1 fetch_and_deploy_gh_release "sparkyfitness" "CodeWithCJ/SparkyFitness" "tarball" PNPM_VERSION="$(jq -r '.packageManager | split("@")[1]' /opt/sparkyfitness/package.json)" - NODE_VERSION="25" NODE_MODULE="corepack,pnpm@${PNPM_VERSION}" setup_nodejs + NODE_VERSION="25" NODE_MODULE="pnpm@${PNPM_VERSION}" setup_nodejs msg_info "Updating Sparky Fitness Backend" cd /opt/sparkyfitness/SparkyFitnessServer diff --git a/ct/streamlink-webui.sh b/ct/streamlink-webui.sh index 6b506fca95..07c815e31d 100644 --- a/ct/streamlink-webui.sh +++ b/ct/streamlink-webui.sh @@ -35,7 +35,7 @@ function update_script() { systemctl stop streamlink-webui msg_info "Stopped Service" - NODE_VERSION="22" NODE_MODULE="corepack,yarn" setup_nodejs + NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs setup_uv CLEAN_INSTALL=1 fetch_and_deploy_gh_release "streamlink-webui" "CrazyWolf13/streamlink-webui" "tarball" diff --git a/ct/tandoor.sh b/ct/tandoor.sh index 9a0fc41796..5752330358 100644 --- a/ct/tandoor.sh +++ b/ct/tandoor.sh @@ -47,7 +47,7 @@ function update_script() { mv /opt/tandoor /opt/tandoor.bak msg_ok "Backup Created" - NODE_VERSION="22" NODE_MODULE="corepack,yarn" setup_nodejs + NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs PYTHON_VERSION="3.13" setup_uv fetch_and_deploy_gh_release "tandoor" "TandoorRecipes/recipes" "tarball" "latest" "/opt/tandoor" diff --git a/ct/tianji.sh b/ct/tianji.sh index f65d0c4d56..3bc530ff8d 100644 --- a/ct/tianji.sh +++ b/ct/tianji.sh @@ -30,7 +30,7 @@ function update_script() { setup_uv if check_for_gh_release "tianji" "msgbyte/tianji"; then - NODE_VERSION="22" NODE_MODULE="corepack,pnpm@$(curl -s https://raw.githubusercontent.com/msgbyte/tianji/master/package.json | jq -r '.packageManager | split("@")[1]')" setup_nodejs + NODE_VERSION="22" NODE_MODULE="pnpm@$(curl -s https://raw.githubusercontent.com/msgbyte/tianji/master/package.json | jq -r '.packageManager | split("@")[1]')" setup_nodejs msg_info "Stopping Service" systemctl stop tianji diff --git a/ct/web-check.sh b/ct/web-check.sh index 7722901f7f..3278788101 100644 --- a/ct/web-check.sh +++ b/ct/web-check.sh @@ -38,7 +38,7 @@ function update_script() { mv /opt/web-check/.env /opt msg_ok "Created backup" - NODE_VERSION="22" NODE_MODULE="corepack,yarn" setup_nodejs + NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs CLEAN_INSTALL=1 fetch_and_deploy_gh_release "web-check" "Lissy93/web-check" "tarball" msg_info "Restoring backup" diff --git a/ct/wikijs.sh b/ct/wikijs.sh index b2efcd71d1..391ce5aaea 100644 --- a/ct/wikijs.sh +++ b/ct/wikijs.sh @@ -29,7 +29,7 @@ function update_script() { exit fi - NODE_VERSION="24" NODE_MODULE="corepack,yarn,node-gyp" setup_nodejs + NODE_VERSION="24" NODE_MODULE="yarn,node-gyp" setup_nodejs if check_for_gh_release "wikijs" "requarks/wiki"; then msg_info "Verifying whether ${APP}' new release is v3.x+ and current install uses SQLite." diff --git a/ct/wishlist.sh b/ct/wishlist.sh index 28b0c4609b..7542941eb5 100644 --- a/ct/wishlist.sh +++ b/ct/wishlist.sh @@ -29,7 +29,7 @@ function update_script() { fi if check_for_gh_release "wishlist" "cmintey/wishlist"; then - NODE_VERSION="24" NODE_MODULE="corepack,pnpm" setup_nodejs + NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs msg_info "Stopping Service" systemctl stop wishlist diff --git a/ct/zigbee2mqtt.sh b/ct/zigbee2mqtt.sh index 94726a6875..2520d7d7bf 100644 --- a/ct/zigbee2mqtt.sh +++ b/ct/zigbee2mqtt.sh @@ -30,7 +30,7 @@ function update_script() { fi if check_for_gh_release "Zigbee2MQTT" "Koenkk/zigbee2mqtt"; then - NODE_VERSION="24" NODE_MODULE="corepack,pnpm@$(curl -fsSL https://raw.githubusercontent.com/Koenkk/zigbee2mqtt/master/package.json | jq -r '.packageManager | split("@")[1]')" setup_nodejs + NODE_VERSION="24" NODE_MODULE="pnpm@$(curl -fsSL https://raw.githubusercontent.com/Koenkk/zigbee2mqtt/master/package.json | jq -r '.packageManager | split("@")[1]')" setup_nodejs msg_info "Stopping Service" systemctl stop zigbee2mqtt msg_ok "Stopped Service" diff --git a/ct/zipline.sh b/ct/zipline.sh index 8cb039cace..f8ed33d52a 100644 --- a/ct/zipline.sh +++ b/ct/zipline.sh @@ -28,7 +28,7 @@ function update_script() { exit fi - NODE_VERSION="24" NODE_MODULE="corepack,pnpm" setup_nodejs + NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs if check_for_gh_release "zipline" "diced/zipline"; then msg_info "Stopping Service" diff --git a/install/adventurelog-install.sh b/install/adventurelog-install.sh index ccdb50342b..a5eb73ec60 100644 --- a/install/adventurelog-install.sh +++ b/install/adventurelog-install.sh @@ -23,7 +23,7 @@ $STD apt install -y \ msg_ok "Installed Dependencies" PYTHON_VERSION="3.13" setup_uv -NODE_VERSION="22" NODE_MODULE="corepack,pnpm@latest" setup_nodejs +NODE_VERSION="22" NODE_MODULE="pnpm@latest" setup_nodejs PG_VERSION="17" PG_MODULES="postgis" setup_postgresql PG_DB_NAME="adventurelog_db" PG_DB_USER="adventurelog_user" PG_DB_EXTENSIONS="postgis" setup_postgresql_db diff --git a/install/anchor-install.sh b/install/anchor-install.sh index 5129ef246e..e1407cfa49 100644 --- a/install/anchor-install.sh +++ b/install/anchor-install.sh @@ -13,7 +13,7 @@ setting_up_container network_check update_os -NODE_VERSION="24" NODE_MODULE="corepack,pnpm" setup_nodejs +NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs PG_VERSION="17" setup_postgresql PG_DB_NAME="anchor" PG_DB_USER="anchor" setup_postgresql_db diff --git a/install/dashy-install.sh b/install/dashy-install.sh index 23a49954bd..1d05158bb3 100644 --- a/install/dashy-install.sh +++ b/install/dashy-install.sh @@ -13,7 +13,7 @@ setting_up_container network_check update_os -NODE_VERSION="24" NODE_MODULE="corepack,yarn" setup_nodejs +NODE_VERSION="24" NODE_MODULE="yarn" setup_nodejs fetch_and_deploy_gh_release "dashy" "Lissy93/dashy" "prebuild" "latest" "/opt/dashy" "dashy-*.tar.gz" msg_info "Installing Dashy" diff --git a/install/docmost-install.sh b/install/docmost-install.sh index 5cee0acd82..826ac8edcb 100644 --- a/install/docmost-install.sh +++ b/install/docmost-install.sh @@ -19,7 +19,7 @@ $STD apt install -y \ make msg_ok "Installed Dependencies" -NODE_VERSION="22" NODE_MODULE="corepack,pnpm@$(curl -s https://raw.githubusercontent.com/docmost/docmost/main/package.json | jq -r '.packageManager | split("@")[1]')" setup_nodejs +NODE_VERSION="22" NODE_MODULE="pnpm@$(curl -s https://raw.githubusercontent.com/docmost/docmost/main/package.json | jq -r '.packageManager | split("@")[1]')" setup_nodejs PG_VERSION="16" setup_postgresql PG_DB_NAME="docmost_db" PG_DB_USER="docmost_user" setup_postgresql_db fetch_and_deploy_gh_release "docmost" "docmost/docmost" "tarball" diff --git a/install/docuseal-install.sh b/install/docuseal-install.sh index 7ad6e57aac..82c89bfc65 100644 --- a/install/docuseal-install.sh +++ b/install/docuseal-install.sh @@ -30,7 +30,7 @@ $STD apt install -y \ fontconfig msg_ok "Installed Dependencies" -NODE_VERSION="22" NODE_MODULE="corepack,yarn" setup_nodejs +NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs PG_VERSION="17" setup_postgresql PG_DB_NAME="docuseal" PG_DB_USER="docuseal" setup_postgresql_db diff --git a/install/elementsynapse-install.sh b/install/elementsynapse-install.sh index e1e08a8ead..226b965b3f 100644 --- a/install/elementsynapse-install.sh +++ b/install/elementsynapse-install.sh @@ -19,7 +19,7 @@ $STD apt install -y \ debconf-utils msg_ok "Installed Dependencies" -NODE_VERSION="22" NODE_MODULE="corepack,yarn" setup_nodejs +NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs echo "${TAB3}It is important to choose the name for your server before you install Synapse, because it cannot be changed later." echo "${TAB3}The server name determines the “domain” part of user-ids for users on your server: these will all be of the format @user:my.domain.name. It also determines how other matrix servers will reach yours for federation." diff --git a/install/erpnext-install.sh b/install/erpnext-install.sh index 74120f3a02..5e1b60cb1f 100644 --- a/install/erpnext-install.sh +++ b/install/erpnext-install.sh @@ -34,7 +34,7 @@ $STD apt install -y \ cron msg_ok "Installed Dependencies" -NODE_VERSION="24" NODE_MODULE="corepack,yarn" setup_nodejs +NODE_VERSION="24" NODE_MODULE="yarn" setup_nodejs UV_PYTHON="3.13" setup_uv setup_mariadb diff --git a/install/excalidraw-install.sh b/install/excalidraw-install.sh index 698e12a7f5..dd6e7a316b 100644 --- a/install/excalidraw-install.sh +++ b/install/excalidraw-install.sh @@ -17,7 +17,7 @@ msg_info "Installing Dependencies" $STD apt install -y xdg-utils msg_ok "Installed Dependencies" -NODE_VERSION="24" NODE_MODULE="corepack,yarn" setup_nodejs +NODE_VERSION="24" NODE_MODULE="yarn" setup_nodejs fetch_and_deploy_gh_release "excalidraw" "excalidraw/excalidraw" "tarball" msg_info "Configuring Excalidraw" diff --git a/install/fumadocs-install.sh b/install/fumadocs-install.sh index 85521066ee..50b27cf3cd 100644 --- a/install/fumadocs-install.sh +++ b/install/fumadocs-install.sh @@ -19,7 +19,7 @@ $STD apt install -y \ git msg_ok "Installed Dependencies" -NODE_VERSION="24" NODE_MODULE="corepack,pnpm" setup_nodejs +NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs msg_info "Preparing Fumadocs - " mkdir -p /opt/fumadocs diff --git a/install/ghost-install.sh b/install/ghost-install.sh index f66799c868..cf3efe5f5e 100644 --- a/install/ghost-install.sh +++ b/install/ghost-install.sh @@ -23,7 +23,7 @@ msg_ok "Installed Dependencies" setup_mariadb MARIADB_DB_NAME="ghost" MARIADB_DB_USER="ghostuser" setup_mariadb_db -NODE_VERSION="22" NODE_MODULE="corepack,pnpm" setup_nodejs +NODE_VERSION="22" NODE_MODULE="pnpm" setup_nodejs msg_info "Installing Ghost CLI" $STD npm install ghost-cli@latest -g diff --git a/install/grist-install.sh b/install/grist-install.sh index 9c37b1d781..5ebea6e76c 100644 --- a/install/grist-install.sh +++ b/install/grist-install.sh @@ -20,7 +20,7 @@ $STD apt install -y \ python3-venv \ git msg_ok "Installed Dependencies" -NODE_VERSION="22" NODE_MODULE="corepack,yarn@latest" setup_nodejs +NODE_VERSION="22" NODE_MODULE="yarn@latest" setup_nodejs fetch_and_deploy_gh_release "grist" "gristlabs/grist-core" "tarball" msg_info "Installing Grist" diff --git a/install/homepage-install.sh b/install/homepage-install.sh index bb7f8d21db..45cba3d825 100644 --- a/install/homepage-install.sh +++ b/install/homepage-install.sh @@ -17,7 +17,7 @@ msg_info "Installing Dependencies" $STD apt-get install -y jq msg_ok "Installed Dependencies" -NODE_VERSION="22" NODE_MODULE="corepack,pnpm@latest" setup_nodejs +NODE_VERSION="22" NODE_MODULE="pnpm@latest" setup_nodejs fetch_and_deploy_gh_release "homepage" "gethomepage/homepage" "tarball" RELEASE=$(get_latest_github_release "gethomepage/homepage") diff --git a/install/joplin-server-install.sh b/install/joplin-server-install.sh index f4b65aa481..f3d39c8c7b 100644 --- a/install/joplin-server-install.sh +++ b/install/joplin-server-install.sh @@ -21,7 +21,7 @@ msg_ok "Installed Dependencies" PG_VERSION="17" setup_postgresql PG_DB_NAME="joplin" PG_DB_USER="joplin" setup_postgresql_db -NODE_VERSION="24" NODE_MODULE="corepack,yarn,npm,pm2" setup_nodejs +NODE_VERSION="24" NODE_MODULE="yarn,npm,pm2" setup_nodejs mkdir -p /opt/pm2 export PM2_HOME=/opt/pm2 $STD pm2 install pm2-logrotate diff --git a/install/jotty-install.sh b/install/jotty-install.sh index 33ebe29ef8..725d93d95d 100644 --- a/install/jotty-install.sh +++ b/install/jotty-install.sh @@ -13,7 +13,7 @@ setting_up_container network_check update_os -NODE_VERSION="22" NODE_MODULE="corepack,yarn" setup_nodejs +NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs fetch_and_deploy_gh_release "jotty" "fccview/jotty" "prebuild" "latest" "/opt/jotty" "jotty_*_prebuild.tar.gz" msg_info "Setup jotty" diff --git a/install/kan-install.sh b/install/kan-install.sh index 7618a0256f..fbd2205222 100644 --- a/install/kan-install.sh +++ b/install/kan-install.sh @@ -21,7 +21,7 @@ msg_ok "Installed Dependencies" PG_VERSION="16" setup_postgresql PG_DB_NAME="kan" PG_DB_USER="kan" setup_postgresql_db -NODE_VERSION="20" NODE_MODULE="corepack,pnpm" setup_nodejs +NODE_VERSION="20" NODE_MODULE="pnpm" setup_nodejs fetch_and_deploy_gh_tag "kan" "kanbn/kan" "latest" diff --git a/install/karakeep-install.sh b/install/karakeep-install.sh index 0a6d95ce4a..4f1d0c3ab8 100644 --- a/install/karakeep-install.sh +++ b/install/karakeep-install.sh @@ -32,7 +32,7 @@ setup_meilisearch fetch_and_deploy_gh_release "karakeep" "karakeep-app/karakeep" "tarball" cd /opt/karakeep MODULE_VERSION="$(jq -r '.packageManager | split("@")[1]' /opt/karakeep/package.json)" -NODE_VERSION="24" NODE_MODULE="corepack,pnpm@${MODULE_VERSION}" setup_nodejs +NODE_VERSION="24" NODE_MODULE="pnpm@${MODULE_VERSION}" setup_nodejs msg_info "Installing external JavaScript Extension for yt-dlp" $STD pip install -U yt-dlp-ejs --break-system-packages diff --git a/install/koel-install.sh b/install/koel-install.sh index 5e54441f45..61da737222 100644 --- a/install/koel-install.sh +++ b/install/koel-install.sh @@ -24,7 +24,7 @@ msg_ok "Installed Dependencies" PG_VERSION="16" setup_postgresql PG_DB_NAME="koel" PG_DB_USER="koel" setup_postgresql_db PHP_VERSION="8.4" PHP_FPM="YES" setup_php -NODE_VERSION="22" NODE_MODULE="corepack,pnpm" setup_nodejs +NODE_VERSION="22" NODE_MODULE="pnpm" setup_nodejs setup_composer fetch_and_deploy_gh_release "koel" "koel/koel" "prebuild" "latest" "/opt/koel" "koel-*.tar.gz" diff --git a/install/koillection-install.sh b/install/koillection-install.sh index 2a25ab92ae..b7f3a60e99 100644 --- a/install/koillection-install.sh +++ b/install/koillection-install.sh @@ -13,7 +13,7 @@ setting_up_container network_check update_os -NODE_VERSION="26" NODE_MODULE="corepack,yarn" setup_nodejs +NODE_VERSION="26" NODE_MODULE="yarn" setup_nodejs PG_VERSION="16" setup_postgresql PHP_VERSION="8.5" PHP_APACHE="YES" setup_php setup_composer diff --git a/install/lobehub-install.sh b/install/lobehub-install.sh index d0b04d4a00..832348d26e 100644 --- a/install/lobehub-install.sh +++ b/install/lobehub-install.sh @@ -30,7 +30,7 @@ systemctl restart postgresql msg_ok "Configured pg_search preload library" PG_DB_NAME="lobehub" PG_DB_USER="lobehub" PG_DB_EXTENSIONS="vector,pg_search" setup_postgresql_db -NODE_VERSION="24" NODE_MODULE="corepack,pnpm" setup_nodejs +NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs fetch_and_deploy_gh_release "lobehub" "lobehub/lobehub" "tarball" diff --git a/install/mafl-install.sh b/install/mafl-install.sh index 3629c2c46a..f63d150136 100644 --- a/install/mafl-install.sh +++ b/install/mafl-install.sh @@ -19,7 +19,7 @@ $STD apt install -y \ build-essential msg_ok "Installed Dependencies" -NODE_VERSION="22" NODE_MODULE="corepack,yarn@latest" setup_nodejs +NODE_VERSION="22" NODE_MODULE="yarn@latest" setup_nodejs fetch_and_deploy_gh_release "mafl" "hywax/mafl" "tarball" msg_info "Installing Mafl" diff --git a/install/mealie-install.sh b/install/mealie-install.sh index 96c0774711..f29ea36b46 100644 --- a/install/mealie-install.sh +++ b/install/mealie-install.sh @@ -29,7 +29,7 @@ msg_ok "Installed Dependencies" PYTHON_VERSION="3.12" setup_uv PG_VERSION="16" setup_postgresql -NODE_MODULE="corepack,yarn" NODE_VERSION="24" setup_nodejs +NODE_MODULE="yarn" NODE_VERSION="24" setup_nodejs fetch_and_deploy_gh_release "mealie" "mealie-recipes/mealie" "tarball" PG_DB_NAME="mealie_db" PG_DB_USER="mealie_user" PG_DB_GRANT_SUPERUSER="true" setup_postgresql_db diff --git a/install/meilisearch-install.sh b/install/meilisearch-install.sh index 314193290c..ede7cd80a3 100644 --- a/install/meilisearch-install.sh +++ b/install/meilisearch-install.sh @@ -17,7 +17,7 @@ MEILISEARCH_BIND="0.0.0.0:7700" setup_meilisearch read -r -p "${TAB3}Do you want add meilisearch-ui? [y/n]: " prompt if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then - NODE_VERSION="22" NODE_MODULE="corepack,pnpm@latest" setup_nodejs + NODE_VERSION="22" NODE_MODULE="pnpm@latest" setup_nodejs fetch_and_deploy_gh_release "meilisearch-ui" "riccox/meilisearch-ui" "tarball" msg_info "Configuring ${APPLICATION}-ui" diff --git a/install/monica-install.sh b/install/monica-install.sh index d189eda608..c09bd03397 100644 --- a/install/monica-install.sh +++ b/install/monica-install.sh @@ -17,7 +17,7 @@ PHP_VERSION="8.2" PHP_APACHE="YES" PHP_MODULE="mysqli,pdo-mysql" setup_php setup_composer setup_mariadb MARIADB_DB_NAME="monica" MARIADB_DB_USER="monica" setup_mariadb_db -NODE_VERSION="22" NODE_MODULE="corepack,yarn@latest" setup_nodejs +NODE_VERSION="22" NODE_MODULE="yarn@latest" setup_nodejs fetch_and_deploy_gh_release "monica" "monicahq/monica" "prebuild" "latest" "/opt/monica" "monica-v*.tar.bz2" msg_info "Configuring monica" diff --git a/install/musicseerr-install.sh b/install/musicseerr-install.sh index d03e28f095..efa2225710 100644 --- a/install/musicseerr-install.sh +++ b/install/musicseerr-install.sh @@ -15,7 +15,7 @@ update_os PYTHON_VERSION="3.13" setup_uv fetch_and_deploy_gh_release "musicseerr" "HabiRabbu/Musicseerr" "tarball" -NODE_VERSION="25" NODE_MODULE="corepack,pnpm@10.33.0" setup_nodejs +NODE_VERSION="25" NODE_MODULE="pnpm@10.33.0" setup_nodejs msg_info "Building Frontend" cd /opt/musicseerr/frontend diff --git a/install/nginxproxymanager-install.sh b/install/nginxproxymanager-install.sh index f4c830b6fc..c3a038b4f9 100644 --- a/install/nginxproxymanager-install.sh +++ b/install/nginxproxymanager-install.sh @@ -71,7 +71,7 @@ WantedBy=multi-user.target EOF msg_ok "Built OpenResty" -NODE_VERSION="22" NODE_MODULE="corepack,yarn" setup_nodejs +NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs RELEASE=$(get_latest_github_release "NginxProxyManager/nginx-proxy-manager") fetch_and_deploy_gh_release "nginxproxymanager" "NginxProxyManager/nginx-proxy-manager" "tarball" "v${RELEASE}" diff --git a/install/open-archiver-install.sh b/install/open-archiver-install.sh index 9d9cfd847c..484bec9a7f 100644 --- a/install/open-archiver-install.sh +++ b/install/open-archiver-install.sh @@ -17,7 +17,7 @@ msg_info "Installing dependendencies" $STD apt install -y valkey msg_ok "Installed dependendencies" -NODE_VERSION="22" NODE_MODULE="corepack,pnpm" setup_nodejs +NODE_VERSION="22" NODE_MODULE="pnpm" setup_nodejs PG_VERSION="17" setup_postgresql PG_DB_NAME="openarchiver_db" PG_DB_USER="openarchiver" setup_postgresql_db diff --git a/install/paperclip-install.sh b/install/paperclip-install.sh index 7c26abab18..585b665f94 100644 --- a/install/paperclip-install.sh +++ b/install/paperclip-install.sh @@ -20,7 +20,7 @@ $STD apt install -y \ ripgrep msg_ok "Installed Dependencies" -NODE_VERSION="24" NODE_MODULE="corepack,pnpm" setup_nodejs +NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs PG_VERSION="17" setup_postgresql PG_DB_NAME="paperclip" PG_DB_USER="paperclip" setup_postgresql_db diff --git a/install/papra-install.sh b/install/papra-install.sh index 3ed6205527..95249a9a8a 100644 --- a/install/papra-install.sh +++ b/install/papra-install.sh @@ -24,7 +24,7 @@ RELEASE=$(curl -fsSL https://api.github.com/repos/papra-hq/papra/releases | grep fetch_and_deploy_gh_release "papra" "papra-hq/papra" "tarball" "${RELEASE}" "/opt/papra" pnpm_version=$(grep -oP '"packageManager":\s*"pnpm@\K[^"]+' /opt/papra/package.json) -NODE_VERSION="26" NODE_MODULE="corepack,pnpm@$pnpm_version" setup_nodejs +NODE_VERSION="26" NODE_MODULE="pnpm@$pnpm_version" setup_nodejs msg_info "Installing Papra (Patience)" cd /opt/papra diff --git a/install/peanut-install.sh b/install/peanut-install.sh index 8cb9803c4f..9c65dd93b0 100644 --- a/install/peanut-install.sh +++ b/install/peanut-install.sh @@ -18,7 +18,7 @@ msg_info "Installing NUT" $STD apt install -y nut-client msg_ok "Installed NUT" -NODE_VERSION="24" NODE_MODULE="corepack,pnpm" setup_nodejs +NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs fetch_and_deploy_gh_release "peanut" "Brandawg93/PeaNUT" "tarball" "latest" "/opt/peanut" msg_info "Setup Peanut" diff --git a/install/seerr-install.sh b/install/seerr-install.sh index c23742f358..1b38b04fe5 100644 --- a/install/seerr-install.sh +++ b/install/seerr-install.sh @@ -21,7 +21,7 @@ msg_ok "Installed Dependencies" fetch_and_deploy_gh_release "seerr" "seerr-team/seerr" "tarball" pnpm_desired=$(grep -Po '"pnpm":\s*"\K[^"]+' /opt/seerr/package.json) -NODE_VERSION="22" NODE_MODULE="corepack,pnpm@$pnpm_desired" setup_nodejs +NODE_VERSION="22" NODE_MODULE="pnpm@$pnpm_desired" setup_nodejs msg_info "Installing Seerr (Patience)" export CYPRESS_INSTALL_BINARY=0 diff --git a/install/sparkyfitness-install.sh b/install/sparkyfitness-install.sh index aa298fe169..75cfc63d56 100644 --- a/install/sparkyfitness-install.sh +++ b/install/sparkyfitness-install.sh @@ -23,7 +23,7 @@ PG_DB_NAME="sparkyfitness" PG_DB_USER="sparky" PG_DB_GRANT_SUPERUSER="true" setu fetch_and_deploy_gh_release sparkyfitness "CodeWithCJ/SparkyFitness" "tarball" "latest" PNPM_VERSION="$(jq -r '.packageManager | split("@")[1]' /opt/sparkyfitness/package.json)" -NODE_VERSION="25" NODE_MODULE="corepack,pnpm@${PNPM_VERSION}" setup_nodejs +NODE_VERSION="25" NODE_MODULE="pnpm@${PNPM_VERSION}" setup_nodejs msg_info "Configuring Sparky Fitness" mkdir -p "/etc/sparkyfitness" "/var/lib/sparkyfitness/uploads" "/var/lib/sparkyfitness/backup" "/var/www/sparkyfitness" diff --git a/install/split-pro-install.sh b/install/split-pro-install.sh index 60c9055745..722793d3bd 100644 --- a/install/split-pro-install.sh +++ b/install/split-pro-install.sh @@ -13,7 +13,7 @@ setting_up_container network_check update_os -NODE_VERSION="22" NODE_MODULE="corepack,pnpm" setup_nodejs +NODE_VERSION="22" NODE_MODULE="pnpm" setup_nodejs PG_VERSION="17" PG_MODULES="cron" setup_postgresql msg_info "Installing Dependencies" diff --git a/install/storybook-install.sh b/install/storybook-install.sh index 6d1fb0e850..1d1e4a66bb 100644 --- a/install/storybook-install.sh +++ b/install/storybook-install.sh @@ -13,7 +13,7 @@ setting_up_container network_check update_os -NODE_VERSION="24" NODE_MODULE="corepack,pnpm" setup_nodejs +NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs msg_info "Preparing Storybook" mkdir -p /opt/storybook diff --git a/install/streamlink-webui-install.sh b/install/streamlink-webui-install.sh index c86dcb2551..b62d68b260 100644 --- a/install/streamlink-webui-install.sh +++ b/install/streamlink-webui-install.sh @@ -15,7 +15,7 @@ network_check update_os NODE_VERSION="22" -NODE_MODULE="corepack,npm@latest,yarn@latest" +NODE_MODULE="npm@latest,yarn@latest" setup_nodejs setup_uv fetch_and_deploy_gh_release "streamlink-webui" "CrazyWolf13/streamlink-webui" "tarball" diff --git a/install/tandoor-install.sh b/install/tandoor-install.sh index 91bb024a27..b010a735e9 100644 --- a/install/tandoor-install.sh +++ b/install/tandoor-install.sh @@ -30,7 +30,7 @@ $STD apt install -y \ libxmlsec1-openssl msg_ok "Installed Dependencies" -NODE_VERSION="22" NODE_MODULE="corepack,yarn" setup_nodejs +NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs fetch_and_deploy_gh_release "tandoor" "TandoorRecipes/recipes" "tarball" "latest" "/opt/tandoor" PG_VERSION="17" setup_postgresql PYTHON_VERSION="3.13" setup_uv diff --git a/install/tasmocompiler-install.sh b/install/tasmocompiler-install.sh index c5316d11b5..ece36657bc 100644 --- a/install/tasmocompiler-install.sh +++ b/install/tasmocompiler-install.sh @@ -19,7 +19,7 @@ $STD apt-get install -y \ python3-venv msg_ok "Installed Dependencies" -NODE_VERSION="22" NODE_MODULE="corepack,yarn@latest" setup_nodejs +NODE_VERSION="22" NODE_MODULE="yarn@latest" setup_nodejs msg_info "Setup Platformio" curl -fsSL -o get-platformio.py https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py diff --git a/install/teable-install.sh b/install/teable-install.sh index 88dfad048d..203cd5d85c 100644 --- a/install/teable-install.sh +++ b/install/teable-install.sh @@ -20,7 +20,7 @@ $STD apt install -y \ git msg_ok "Installed Dependencies" -NODE_VERSION="24" NODE_MODULE="corepack,pnpm" setup_nodejs +NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs PG_VERSION="16" setup_postgresql PG_DB_NAME="teable" PG_DB_USER="teable" setup_postgresql_db diff --git a/install/tianji-install.sh b/install/tianji-install.sh index d58c9e6d02..24f9cd7553 100644 --- a/install/tianji-install.sh +++ b/install/tianji-install.sh @@ -22,7 +22,7 @@ $STD apt install -y \ git msg_ok "Installed Dependencies" -NODE_VERSION="22" NODE_MODULE="corepack,pnpm@$(curl -s https://raw.githubusercontent.com/msgbyte/tianji/master/package.json | jq -r '.packageManager | split("@")[1]')" setup_nodejs +NODE_VERSION="22" NODE_MODULE="pnpm@$(curl -s https://raw.githubusercontent.com/msgbyte/tianji/master/package.json | jq -r '.packageManager | split("@")[1]')" setup_nodejs PG_VERSION="17" setup_postgresql PG_DB_NAME="tianji_db" PG_DB_USER="tianji" setup_postgresql_db PYTHON_VERSION="3.13" setup_uv diff --git a/install/umami-install.sh b/install/umami-install.sh index f822d018f0..74e0d29e80 100644 --- a/install/umami-install.sh +++ b/install/umami-install.sh @@ -13,7 +13,7 @@ setting_up_container network_check update_os -NODE_VERSION="22" NODE_MODULE="corepack,pnpm@latest" setup_nodejs +NODE_VERSION="22" NODE_MODULE="pnpm@latest" setup_nodejs PG_VERSION="17" setup_postgresql PG_DB_NAME="umamidb" PG_DB_USER="umami" setup_postgresql_db fetch_and_deploy_gh_release "umami" "umami-software/umami" "tarball" diff --git a/install/web-check-install.sh b/install/web-check-install.sh index 2285cff671..20f08c3ddb 100644 --- a/install/web-check-install.sh +++ b/install/web-check-install.sh @@ -32,7 +32,7 @@ $STD apt -y install --no-install-recommends \ x11-apps msg_ok "Installed Dependencies" -NODE_VERSION="22" NODE_MODULE="corepack,yarn" setup_nodejs +NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs msg_info "Setup Python3" $STD apt install -y python3 diff --git a/install/wikijs-install.sh b/install/wikijs-install.sh index 5f943ad990..a2dfd022e5 100644 --- a/install/wikijs-install.sh +++ b/install/wikijs-install.sh @@ -17,7 +17,7 @@ msg_info "Installing Dependencies" $STD apt install -y git msg_ok "Installed Dependencies" -NODE_VERSION="24" NODE_MODULE="corepack,yarn,node-gyp" setup_nodejs +NODE_VERSION="24" NODE_MODULE="yarn,node-gyp" setup_nodejs PG_VERSION="17" setup_postgresql PG_DB_NAME="wiki" PG_DB_USER="wikijs_user" PG_DB_EXTENSIONS="pg_trgm" setup_postgresql_db fetch_and_deploy_gh_release "wikijs" "requarks/wiki" "prebuild" "latest" "/opt/wikijs" "wiki-js.tar.gz" diff --git a/install/wishlist-install.sh b/install/wishlist-install.sh index fd7a627bc1..841f6d2b04 100644 --- a/install/wishlist-install.sh +++ b/install/wishlist-install.sh @@ -20,7 +20,7 @@ $STD apt install -y \ caddy msg_ok "Installed dependencies" -NODE_VERSION="24" NODE_MODULE="corepack,pnpm@10" setup_nodejs +NODE_VERSION="24" NODE_MODULE="pnpm@10" setup_nodejs fetch_and_deploy_gh_release "wishlist" "cmintey/wishlist" "tarball" LATEST_APP_VERSION=$(get_latest_github_release "cmintey/wishlist") diff --git a/install/zigbee2mqtt-install.sh b/install/zigbee2mqtt-install.sh index 2922ce4f71..4674bdc1d2 100644 --- a/install/zigbee2mqtt-install.sh +++ b/install/zigbee2mqtt-install.sh @@ -19,7 +19,7 @@ $STD apt install -y \ build-essential msg_ok "Installed Dependencies" -NODE_VERSION="24" NODE_MODULE="corepack,pnpm@$(curl -fsSL https://raw.githubusercontent.com/Koenkk/zigbee2mqtt/master/package.json | jq -r '.packageManager | split("@")[1]')" setup_nodejs +NODE_VERSION="24" NODE_MODULE="pnpm@$(curl -fsSL https://raw.githubusercontent.com/Koenkk/zigbee2mqtt/master/package.json | jq -r '.packageManager | split("@")[1]')" setup_nodejs fetch_and_deploy_gh_release "Zigbee2MQTT" "Koenkk/zigbee2mqtt" "tarball" "latest" "/opt/zigbee2mqtt" msg_info "Setting up Zigbee2MQTT" diff --git a/install/zipline-install.sh b/install/zipline-install.sh index 2e3836b6f0..8205135d5d 100644 --- a/install/zipline-install.sh +++ b/install/zipline-install.sh @@ -14,7 +14,7 @@ setting_up_container network_check update_os -NODE_VERSION="24" NODE_MODULE="corepack,pnpm" setup_nodejs +NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs PG_VERSION="17" setup_postgresql PG_DB_NAME="ziplinedb" PG_DB_USER="zipline" setup_postgresql_db fetch_and_deploy_gh_release "zipline" "diced/zipline" "tarball" diff --git a/misc/tools.func b/misc/tools.func index 2dd8a7184c..5baa8bb7a2 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -7453,8 +7453,6 @@ setup_nodejs() { for i in "${!MODULES[@]}"; do if [[ "${MODULES[$i]}" == "corepack" || "${MODULES[$i]}" == corepack@* ]]; then wants_corepack=1 - elif [[ "${MODULES[$i]}" == yarn || "${MODULES[$i]}" == yarn@* || "${MODULES[$i]}" == pnpm || "${MODULES[$i]}" == pnpm@* ]]; then - wants_corepack=1 fi if [[ "${MODULES[$i]}" == "pnpm" ]]; then MODULES[$i]="pnpm@^10"