Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Fix npm stderr crash on Windows ErrorActionPreference

Roland Tannous2dfe0abaa1e9
diff --git a/setup.ps1 b/setup.ps1
index c82d03615ce..239238b97d2 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
}