fix(install): preserve Node PATH readiness guard

This commit is contained in:
Gille
2026-08-08 15:45:47 -06:00
committed by Teknium
parent 3e1629009a
commit 4572dbf090
+3 -2
View File
@@ -1676,12 +1676,13 @@ function Test-SystemNodeReady {
if (-not (Get-Command node -ErrorAction SilentlyContinue)) { return $false }
$version = node --version
if (-not (Test-NodeVersionOk $version)) {
if (Test-NodeVersionOk $version) {
Ensure-NodeExeOnPath | Out-Null
} else {
Write-Warn "Node.js $version is too old (Hermes requires Node >=22.22.0)"
return $false
}
Ensure-NodeExeOnPath | Out-Null
$npmRange = Get-NpmRange
$npmCmd = Get-Command npm.cmd -ErrorAction SilentlyContinue
if (-not $npmCmd) {