From c272987bad7e5c75bf0a5a9f4c91e496b1aba13c Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Fri, 4 Sep 2026 17:52:31 +0200 Subject: [PATCH] Fix npm v12 allow-git/allow-remote restrictions across affected scripts (#17014) * bentopdf: allow remote npm dependency for xlsx under npm v12 * librechat: allow remote npm dependency for xlsx under npm v12 * pangolin: allow remote npm dependencies for iron-remote-desktop packages under npm v12 * baserow: allow remote npm dependency for xlsx under npm v12 * cryptpad: allow git-based npm dependencies for drawio and json.sortify under npm v12 --- ct/baserow.sh | 2 +- ct/bentopdf.sh | 2 +- ct/cryptpad.sh | 2 +- ct/librechat.sh | 2 +- ct/pangolin.sh | 2 +- install/baserow-install.sh | 2 +- install/bentopdf-install.sh | 2 +- install/cryptpad-install.sh | 2 +- install/librechat-install.sh | 2 +- install/pangolin-install.sh | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ct/baserow.sh b/ct/baserow.sh index f94d76cb3..c9e8c9493 100644 --- a/ct/baserow.sh +++ b/ct/baserow.sh @@ -48,7 +48,7 @@ function update_script() { msg_info "Rebuilding Frontend" cd /opt/baserow/web-frontend - $STD npm install + $STD npm install --allow-remote=all $STD npm run build msg_ok "Rebuilt Frontend" diff --git a/ct/bentopdf.sh b/ct/bentopdf.sh index 2c204a694..32f6d24e6 100644 --- a/ct/bentopdf.sh +++ b/ct/bentopdf.sh @@ -44,7 +44,7 @@ function update_script() { msg_info "Configuring BentoPDF" cd /opt/bentopdf - $STD npm ci --no-audit --no-fund + $STD npm ci --no-audit --no-fund --allow-remote=all export NODE_OPTIONS="--max-old-space-size=3072" export SIMPLE_MODE=true export VITE_USE_CDN=true diff --git a/ct/cryptpad.sh b/ct/cryptpad.sh index 097a78b0d..cd420c9ff 100644 --- a/ct/cryptpad.sh +++ b/ct/cryptpad.sh @@ -51,7 +51,7 @@ function update_script() { msg_info "Updating CryptPad" cd /opt/cryptpad - $STD npm ci + $STD npm ci --allow-git=all $STD npm run install:components if [ -f "/opt/cryptpad/install-onlyoffice.sh" ]; then $STD bash /opt/cryptpad/install-onlyoffice.sh --accept-license diff --git a/ct/librechat.sh b/ct/librechat.sh index 4c3a053b5..fe2267a92 100644 --- a/ct/librechat.sh +++ b/ct/librechat.sh @@ -45,7 +45,7 @@ function update_script() { msg_info "Installing Dependencies" cd /opt/librechat - $STD npm ci + $STD npm ci --allow-remote=all msg_ok "Installed Dependencies" msg_info "Building Frontend" diff --git a/ct/pangolin.sh b/ct/pangolin.sh index 8d9a360be..50bc19778 100644 --- a/ct/pangolin.sh +++ b/ct/pangolin.sh @@ -63,7 +63,7 @@ function update_script() { msg_info "Updating Pangolin" cd /opt/pangolin - $STD npm ci + $STD npm ci --allow-remote=all $STD npm run set:pg $STD npm run set:oss rm -rf server/private diff --git a/install/baserow-install.sh b/install/baserow-install.sh index 082dbed93..bd2b61d5d 100644 --- a/install/baserow-install.sh +++ b/install/baserow-install.sh @@ -45,7 +45,7 @@ msg_ok "Installed Backend Dependencies" msg_info "Building Frontend" cd /opt/baserow/web-frontend -NODE_OPTIONS="--max-old-space-size=4096" $STD npm install --legacy-peer-deps +NODE_OPTIONS="--max-old-space-size=4096" $STD npm install --legacy-peer-deps --allow-remote=all NODE_OPTIONS="--max-old-space-size=4096" $STD npm run build msg_ok "Built Frontend" diff --git a/install/bentopdf-install.sh b/install/bentopdf-install.sh index 875147739..2d67fec93 100644 --- a/install/bentopdf-install.sh +++ b/install/bentopdf-install.sh @@ -24,7 +24,7 @@ fetch_and_deploy_gh_release "bentopdf" "alam00000/bentopdf" "tarball" "latest" " msg_info "Setup BentoPDF" cd /opt/bentopdf -$STD npm ci --no-audit --no-fund +$STD npm ci --no-audit --no-fund --allow-remote=all cp ./.env.example ./.env.production export NODE_OPTIONS="--max-old-space-size=3072" export SIMPLE_MODE=true diff --git a/install/cryptpad-install.sh b/install/cryptpad-install.sh index 43809a34c..ed9e61b42 100644 --- a/install/cryptpad-install.sh +++ b/install/cryptpad-install.sh @@ -24,7 +24,7 @@ fetch_and_deploy_gh_release "cryptpad" "cryptpad/cryptpad" "tarball" msg_info "Setup CryptPad" cd /opt/cryptpad -$STD npm ci +$STD npm ci --allow-git=all $STD npm run install:components if [[ "$onlyoffice" =~ ^[Yy]$ ]]; then $STD bash -c "./install-onlyoffice.sh --accept-license" diff --git a/install/librechat-install.sh b/install/librechat-install.sh index 6108860a2..6263147c3 100644 --- a/install/librechat-install.sh +++ b/install/librechat-install.sh @@ -25,7 +25,7 @@ fetch_and_deploy_gh_release "rag-api" "danny-avila/rag_api" "tarball" msg_info "Installing LibreChat Dependencies" cd /opt/librechat -$STD npm ci +$STD npm ci --allow-remote=all msg_ok "Installed LibreChat Dependencies" msg_info "Building Frontend" diff --git a/install/pangolin-install.sh b/install/pangolin-install.sh index ae8582f2a..c21acff09 100644 --- a/install/pangolin-install.sh +++ b/install/pangolin-install.sh @@ -45,7 +45,7 @@ SECRET_KEY=$(openssl rand -base64 48 | tr -dc 'A-Za-z0-9' | head -c 32) BADGER_VERSION=$(get_latest_github_release "fosrl/badger" "false") cd /opt/pangolin mkdir -p /opt/pangolin/config/{traefik,db,letsencrypt,logs} -$STD npm ci +$STD npm ci --allow-remote=all $STD npm run set:pg $STD npm run set:oss rm -rf server/private