mirror of
https://github.com/affaan-m/ECC.git
synced 2026-10-15 12:45:29 +02:00
fix(install): refine preflight comment and cross-reference package.json engines
This commit is contained in:
+2
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user