Skip to content

Commit e1a40f2

Browse files
author
openclaw-installer-sync[bot]
committed
chore: sync installers from openclaw f7196e3b5311
1 parent 90d9d50 commit e1a40f2

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

public/install.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,14 @@ function Check-Node {
8686
try {
8787
$nodeVersion = (node -v 2>$null)
8888
if ($nodeVersion) {
89-
$version = [int]($nodeVersion -replace 'v(\d+)\..*', '$1')
90-
if ($version -ge 22) {
89+
$versionMatch = [regex]::Match($nodeVersion, '^v(?<major>\d+)\.(?<minor>\d+)\.')
90+
$major = if ($versionMatch.Success) { [int]$versionMatch.Groups["major"].Value } else { 0 }
91+
$minor = if ($versionMatch.Success) { [int]$versionMatch.Groups["minor"].Value } else { 0 }
92+
if (($major -gt 22) -or (($major -eq 22) -and ($minor -ge 19))) {
9193
Write-Host "[OK] Node.js $nodeVersion found" -ForegroundColor Green
9294
return $true
9395
} else {
94-
Write-Host "[!] Node.js $nodeVersion found, but v22+ required" -ForegroundColor Yellow
96+
Write-Host "[!] Node.js $nodeVersion found, but v22.19+ required" -ForegroundColor Yellow
9597
return $false
9698
}
9799
}

public/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ NC='\033[0m' # No Color
1818
DEFAULT_TAGLINE="All your chats, one OpenClaw."
1919
NODE_DEFAULT_MAJOR=24
2020
NODE_MIN_MAJOR=22
21-
NODE_MIN_MINOR=14
21+
NODE_MIN_MINOR=19
2222
NODE_MIN_VERSION="${NODE_MIN_MAJOR}.${NODE_MIN_MINOR}"
2323

2424
ORIGINAL_PATH="${PATH:-}"

0 commit comments

Comments
 (0)