fix(install): stop after npm bootstrap failures on powershell

This commit is contained in:
Affaan Mustafa
2026-03-28 20:36:43 -04:00
parent 9c381b4469
commit 4eaee83448

View File

@@ -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 }
}