mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
fix(install): stop after npm bootstrap failures on powershell
This commit is contained in:
parent
9c381b4469
commit
4eaee83448
1 changed files with 7 additions and 1 deletions
|
|
@ -39,7 +39,13 @@ $nodeModules = Join-Path -Path $scriptDir -ChildPath 'node_modules'
|
||||||
if (-not (Test-Path -LiteralPath $nodeModules)) {
|
if (-not (Test-Path -LiteralPath $nodeModules)) {
|
||||||
Write-Host '[ECC] Installing dependencies...'
|
Write-Host '[ECC] Installing dependencies...'
|
||||||
Push-Location $scriptDir
|
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 }
|
finally { Pop-Location }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue