From 91e31a032ec45bc281d28fef803587e5dd6d8f11 Mon Sep 17 00:00:00 2001 From: wzc <1215660855@qq.com> Date: Sun, 27 Sep 2026 14:08:33 +0800 Subject: [PATCH] fix(install): refine preflight comment and cross-reference package.json engines --- install.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.ps1 b/install.ps1 index 96c249192..7e5beeea3 100644 --- a/install.ps1 +++ b/install.ps1 @@ -34,7 +34,8 @@ while ($true) { $scriptDir = Split-Path -Parent $scriptPath $installerScript = Join-Path -Path (Join-Path -Path $scriptDir -ChildPath 'scripts') -ChildPath 'install-apply.js' -# ponytail: preflight Node.js presence and version (>= 18) +# Preflight: check Node.js presence and version +# Must stay in sync with package.json "engines.node" (>= 18) $minimumNodeMajor = 18 if (-not (Get-Command node -ErrorAction SilentlyContinue)) { [Console]::Error.WriteLine("[ECC] Node.js is required but was not found in PATH. Please install Node.js $minimumNodeMajor or newer: https://nodejs.org")