diff --git a/public/install.ps1 b/public/install.ps1 index 346546f..69bc782 100644 --- a/public/install.ps1 +++ b/public/install.ps1 @@ -166,7 +166,7 @@ function Ensure-OpenClawOnPath { } if (-not [string]::IsNullOrWhiteSpace($npmPrefix)) { - $npmBin = Join-Path $npmPrefix "bin" + $npmBin = $npmPrefix $userPath = [Environment]::GetEnvironmentVariable("Path", "User") if (-not ($userPath -split ";" | Where-Object { $_ -ieq $npmBin })) { [Environment]::SetEnvironmentVariable("Path", "$userPath;$npmBin", "User") @@ -181,7 +181,7 @@ function Ensure-OpenClawOnPath { Write-Host "[!] openclaw is not on PATH yet." -ForegroundColor Yellow Write-Host "Restart PowerShell or add the npm global bin folder to PATH." -ForegroundColor Yellow if ($npmPrefix) { - Write-Host "Expected path: $npmPrefix\\bin" -ForegroundColor Cyan + Write-Host "Expected path: $npmPrefix" -ForegroundColor Cyan } else { Write-Host "Hint: run \"npm config get prefix\" to find your npm global path." -ForegroundColor Gray }