1
0
forked from baron/baron-sso

fix(frontend): force hoisted node-linker in docker runtime script to prevent cross-volume symlink/hardlink ENOENT errors

This commit is contained in:
2026-05-15 11:30:15 +09:00
parent e71e090eec
commit 4de7124a3c
3 changed files with 3 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ ensure_frontend_dependencies() {
echo "Installing frontend dependencies..."
if [ "$WORKSPACE_DIR" = "/common" ]; then
npm install -g pnpm
(cd /common && rm -rf node_modules .pnpm-store && CI=true pnpm install --store-dir /root/.pnpm-store)
(cd /common && rm -rf node_modules .pnpm-store && echo "node-linker=hoisted" > .npmrc && CI=true pnpm install --store-dir /root/.pnpm-store)
else
npm ci
fi