From 4eaee83448b776e08a37b2c1ea3fe1994ac772ab Mon Sep 17 00:00:00 2001 From: Affaan Mustafa Date: Sat, 28 Mar 2026 20:36:43 -0400 Subject: [PATCH] fix(install): stop after npm bootstrap failures on powershell --- install.ps1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/install.ps1 b/install.ps1 index ea9b09c3..752ac2ec 100644 --- a/install.ps1 +++ b/install.ps1 @@ -39,7 +39,13 @@ $nodeModules = Join-Path -Path $scriptDir -ChildPath 'node_modules' if (-not (Test-Path -LiteralPath $nodeModules)) { Write-Host '[ECC] Installing dependencies...' Push-Location $scriptDir - try { & npm install --no-audit --no-fund --loglevel=error } + try { + & npm install --no-audit --no-fund --loglevel=error + if ($LASTEXITCODE -ne 0) { + Write-Error "npm install failed with exit code $LASTEXITCODE" + exit $LASTEXITCODE + } + } finally { Pop-Location } }