Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

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

Affaan Mustafa4eaee83448b7
diff --git a/install.ps1 b/install.ps1
index ea9b09c31..752ac2ec4 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 }
}