1
0
forked from baron/baron-sso

fix(frontend): revert to safe npm install in docker runtime to resolve persistent pnpm ENOENT cross-device store errors

This commit is contained in:
2026-05-15 11:59:34 +09:00
parent 4f952df003
commit 55d5e58783
3 changed files with 6 additions and 6 deletions

View File

@@ -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