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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user