Install project-compatible Node.js version

This commit is contained in:
王鹏
2026-10-09 10:20:23 +08:00
parent 4207e5947d
commit d4efdd01b4
8 changed files with 481 additions and 6 deletions

View File

@@ -62,11 +62,6 @@ def check_environment(
results: list[EnvironmentCheck] = []
for name, command in selected_checks.items():
path_result = _try_command(name, command, "PATH", command_runner)
if path_result.installed:
results.append(path_result)
continue
manual_path = configured_paths.get(name)
if manual_path and manual_path.exists():
manual_command = [str(manual_path), *command[1:]]
@@ -75,6 +70,11 @@ def check_environment(
results.append(manual_result)
continue
path_result = _try_command(name, command, "PATH", command_runner)
if path_result.installed:
results.append(path_result)
continue
discovered = discover_executable(name, roots)
if discovered:
discovered_command = [str(discovered), *command[1:]]