# Set OpenClaw Node to fixed version # This ensures OpenClaw uses Node v24.14.0 regardless of NVM changes $OpenclawNodePath = "F:\openclaw-runtime\node-v24.14.0-win-x64\node.exe" # Check if Node exists if (Test-Path $OpenclawNodePath) { Write-Host "Setting OpenClaw Node to: $OpenclawNodePath" -ForegroundColor Green # Set for current session $env:OPENCLAW_NODE = $OpenclawNodePath [System.Environment]::SetEnvironmentVariable("OPENCLAW_NODE", $OpenclawNodePath, "Process") # Set for user (permanent) - this is redundant but provides clarity [System.Environment]::SetEnvironmentVariable("OPENCLAW_NODE", $OpenclawNodePath, "User") Write-Host "OpenClaw Node version:" -ForegroundColor Cyan & $OpenclawNodePath --version Write-Host "Environment variable OPENCLAW_NODE has been set permanently." -ForegroundColor Yellow Write-Host "Note: gateway.cmd already uses hardcoded path, so this is for future compatibility." -ForegroundColor Yellow } else { Write-Host "Error: Node not found at $OpenclawNodePath" -ForegroundColor Red Write-Host "Please check if OpenClaw runtime is installed." -ForegroundColor Red }