fix: auto-patch Angular CLI node version constraint and support nvm in start scripts

- Auto-patch Angular CLI 22.1.6 node-version.js requirement from ^22.22.3 to 22.22.0 across Linux, macOS, and Windows startup scripts
- Automatically detect and load nvm in start.sh and install_deps.sh when available
- Ensure Showcase UI can be built on Cloudtop and Debian systems running Node 22.22.x without requiring root privileges
This commit is contained in:
somew1nd committed 2026-09-04 11:37:05 -07:00
1 parent c79c6eb27b
commit db69288fac
4 files changed
+49 -2

No files matched your search

+4
View File
@@ -118,6 +118,10 @@ if ((-not (Test-Path $ShowcaseIndex)) -and (-not (Test-Path $ShowcaseIndexAlt1))
Push-Location "$RootDir\apps\showcase_ui"
try {
npm install --silent
$cliNodeVersion = "$RootDir\apps\showcase_ui\node_modules\@angular\cli\src\utilities\node-version.js"
if (Test-Path $cliNodeVersion) {
(Get-Content $cliNodeVersion) -replace '22\.22\.3', '22.22.0' | Set-Content $cliNodeVersion
}
npm run build
Write-Host " [OK] Showcase UI compiled successfully." -ForegroundColor Green
} catch {