From 2dfe0abaa1e9b0be1400b44b5b149ed96ccd1115 Mon Sep 17 00:00:00 2001 From: Roland Tannous Date: Fri, 27 Feb 2026 20:59:10 +0000 Subject: [PATCH] Fix npm stderr crash on Windows ErrorActionPreference --- setup.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.ps1 b/setup.ps1 index c82d03615c..239238b97d 100644 --- a/setup.ps1 +++ b/setup.ps1 @@ -390,10 +390,15 @@ if ($IsPipInstall) { } else { Write-Host "" Write-Host "Building frontend..." -ForegroundColor Cyan + # npm writes warnings to stderr; lower ErrorActionPreference so PS doesn't + # treat them as terminating errors (same pattern as the pip section below). + $prevEAP_npm = $ErrorActionPreference + $ErrorActionPreference = "Continue" Push-Location $FrontendDir npm install 2>&1 | Out-Null npm run build 2>&1 | Out-Null Pop-Location + $ErrorActionPreference = $prevEAP_npm Write-Host "[OK] Frontend built to studio/frontend/dist" -ForegroundColor Green }