feat: use LTS Node.js version for installation

- Replace hardcoded setup_24.x with setup_lts.x for Linux apt/dnf/yum
- Update Windows installer to use Node.js 22 LTS with dynamic version fetch
- Update install messages to reflect LTS instead of specific version
- Fixes: Node.js 24+ requirement causing installation failures on some systems
- Ensures latest LTS version (20.x, 22.x) is used instead of bleeding edge

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
delta-cloud-208e
2026-02-26 18:44:31 +00:00
parent 62b5af8543
commit b50ad05d93
2 changed files with 14 additions and 7 deletions

View File

@@ -125,7 +125,7 @@ def install_node():
return False
# Linux — nodesource
print(f" Installing Node.js v24 via nodesource...")
print(f" Installing Node.js LTS via nodesource...")
try:
# Remove old nodesource list if present (prevents version conflicts)
for old_list in ["/etc/apt/sources.list.d/nodesource.list"]:
@@ -133,7 +133,7 @@ def install_node():
os.remove(old_list)
result = run_cmd(
["bash", "-c", "curl -fsSL https://deb.nodesource.com/setup_24.x | bash - && apt-get remove -y nodejs || true && apt-get install -y nodejs"],
["bash", "-c", "curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && apt-get remove -y nodejs || true && apt-get install -y nodejs"],
timeout=180, capture_output=True, text=True,
)
if result.returncode == 0:
@@ -148,7 +148,7 @@ def install_node():
for pkg_mgr in ["dnf", "yum"]:
if shutil.which(pkg_mgr):
result = run_cmd(
["bash", "-c", f"curl -fsSL https://rpm.nodesource.com/setup_24.x | bash - && {pkg_mgr} install -y nodejs"],
["bash", "-c", f"curl -fsSL https://rpm.nodesource.com/setup_lts.x | bash - && {pkg_mgr} install -y nodejs"],
timeout=180, capture_output=True, text=True,
)
if result.returncode == 0: