Skip to content

Commit f9390bf

Browse files
StingNingsteipete
andauthored
fix(windows): require git for npm install in install.ps1 (#94)
* fix(windows): require git for npm install in install.ps1 * docs: thank @ningding97 for PR #94 --------- Co-authored-by: Peter Steinberger <steipete@gmail.com>
1 parent ce9749f commit f9390bf

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
## 2026-03-07
44

5+
- Shoutouts: use the theme-aware card surface token so shoutout cards render correctly in light mode (#100, thanks @zwying0814).
56
- Sponsors: keep the Vercel logo visible in light mode by excluding the light-theme asset from sponsor inversion rules (#88, thanks @Unmesh100).
6-
7+
- Windows installer: fail fast with a clear Git requirement before npm-based install flows that would otherwise die later with `spawn git` (#94, thanks @ningding97).
78
## 2026-02-22
89

910
- Installer: make gum behavior fully automatic (interactive TTYs get gum, headless shells get plain status), and remove manual gum toggles.

public/install.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function Check-Git {
144144
function Require-Git {
145145
if (Check-Git) { return }
146146
Write-Host ""
147-
Write-Host "Error: Git is required for --InstallMethod git." -ForegroundColor Red
147+
Write-Host "Error: Git is required to install OpenClaw." -ForegroundColor Red
148148
Write-Host "Install Git for Windows:" -ForegroundColor Yellow
149149
Write-Host " https://git-scm.com/download/win" -ForegroundColor Cyan
150150
Write-Host "Then re-run this installer." -ForegroundColor Yellow
@@ -268,6 +268,8 @@ function Install-OpenClaw {
268268
if ([string]::IsNullOrWhiteSpace($Tag)) {
269269
$Tag = "latest"
270270
}
271+
Require-Git
272+
271273
# Use openclaw package for beta, openclaw for stable
272274
$packageName = "openclaw"
273275
if ($Tag -eq "beta" -or $Tag -match "^beta\.") {

0 commit comments

Comments
 (0)