forked from baron/baron-sso
fix(frontend): fallback to standard npm install in docker runtime scripts to bypass pnpm cross-device hardlink limitations
This commit is contained in:
@@ -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 && echo "node-linker=hoisted" > .npmrc && CI=true pnpm install --store-dir /root/.pnpm-store)
|
||||
(cd /common && npm install --legacy-peer-deps --no-fund --no-audit)
|
||||
else
|
||||
npm ci
|
||||
fi
|
||||
|
||||
@@ -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 && echo "node-linker=hoisted" > .npmrc && CI=true pnpm install --store-dir /root/.pnpm-store)
|
||||
(cd /common && npm install --legacy-peer-deps --no-fund --no-audit)
|
||||
else
|
||||
npm ci
|
||||
fi
|
||||
|
||||
@@ -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 && echo "node-linker=hoisted" > .npmrc && CI=true pnpm install --store-dir /root/.pnpm-store)
|
||||
(cd /common && npm install --legacy-peer-deps --no-fund --no-audit)
|
||||
else
|
||||
npm ci
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user