add portable setup script for Node.js and stable-diffusion.cpp backend dependency management

This commit is contained in:
techjarves committed 2026-06-06 20:40:42 +05:30
1 parent eb5d9d8e89
commit 6595213696
1 file changed
+3
+3
View File
@@ -389,7 +389,9 @@ if (-not (Test-Path $npmCmd)) {
}
Push-Location $frontendDir
$oldPath = $env:PATH
try {
$env:PATH = "$nodeDir;$env:PATH"
& $npmCmd install --prefer-offline 2>&1
if ($LASTEXITCODE -ne 0) {
Print-Fail "npm install failed."
@@ -410,6 +412,7 @@ try {
Write-Host ""
Print-OK "Frontend built!"
} finally {
$env:PATH = $oldPath
Pop-Location
}