From 55d5e58783dedb10956d88a249500f8cc9b09feb Mon Sep 17 00:00:00 2001 From: chan Date: Fri, 15 May 2026 11:59:34 +0900 Subject: [PATCH] fix(frontend): revert to safe npm install in docker runtime to resolve persistent pnpm ENOENT cross-device store errors --- adminfront/scripts/runtime-mode.sh | 4 ++-- devfront/scripts/runtime-mode.sh | 4 ++-- orgfront/scripts/runtime-mode.sh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/adminfront/scripts/runtime-mode.sh b/adminfront/scripts/runtime-mode.sh index 8f85dcac..b8ae3c32 100644 --- a/adminfront/scripts/runtime-mode.sh +++ b/adminfront/scripts/runtime-mode.sh @@ -60,8 +60,8 @@ ensure_frontend_dependencies() { if [ "$installed_hash" != "$deps_hash" ]; then echo "Installing frontend dependencies..." if [ "$WORKSPACE_DIR" = "/common" ]; then - npm install -g pnpm - (cd /common && rm -rf node_modules .pnpm-store && npm install -g pnpm && pnpm config set store-dir /root/.pnpm-store && CI=true pnpm install --no-frozen-lockfile --ignore-scripts) + + (cd /common && rm -rf node_modules .pnpm-store pnpm-lock.yaml pnpm-workspace.yaml && npm install --no-fund --no-audit) else npm ci fi diff --git a/devfront/scripts/runtime-mode.sh b/devfront/scripts/runtime-mode.sh index 03416cf9..15d8ab3c 100644 --- a/devfront/scripts/runtime-mode.sh +++ b/devfront/scripts/runtime-mode.sh @@ -60,8 +60,8 @@ ensure_frontend_dependencies() { if [ "$installed_hash" != "$deps_hash" ]; then echo "Installing frontend dependencies..." if [ "$WORKSPACE_DIR" = "/common" ]; then - npm install -g pnpm - (cd /common && rm -rf node_modules .pnpm-store && npm install -g pnpm && pnpm config set store-dir /root/.pnpm-store && CI=true pnpm install --no-frozen-lockfile --ignore-scripts) + + (cd /common && rm -rf node_modules .pnpm-store pnpm-lock.yaml pnpm-workspace.yaml && npm install --no-fund --no-audit) else npm ci fi diff --git a/orgfront/scripts/runtime-mode.sh b/orgfront/scripts/runtime-mode.sh index ce9f7d74..d9311fd5 100644 --- a/orgfront/scripts/runtime-mode.sh +++ b/orgfront/scripts/runtime-mode.sh @@ -60,8 +60,8 @@ ensure_frontend_dependencies() { if [ "$installed_hash" != "$deps_hash" ]; then echo "Installing frontend dependencies..." if [ "$WORKSPACE_DIR" = "/common" ]; then - npm install -g pnpm - (cd /common && rm -rf node_modules .pnpm-store && npm install -g pnpm && pnpm config set store-dir /root/.pnpm-store && CI=true pnpm install --no-frozen-lockfile --ignore-scripts) + + (cd /common && rm -rf node_modules .pnpm-store pnpm-lock.yaml pnpm-workspace.yaml && npm install --no-fund --no-audit) else npm ci fi