-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.ps1
More file actions
25 lines (20 loc) · 825 Bytes
/
install.ps1
File metadata and controls
25 lines (20 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# klonk installer for Windows PowerShell
# Usage: irm https://raw.githubusercontent.com/user/klonk/main/install.ps1 | iex
#
# Runs the interactive klonk setup via npx.
# Requires Node.js 18+ (which Claude Code already requires).
$ErrorActionPreference = "Stop"
if (-not (Get-Command node -ErrorAction SilentlyContinue)) {
Write-Host "Error: Node.js is required but not found." -ForegroundColor Red
Write-Host "Claude Code requires Node.js 18+ - install it from https://nodejs.org"
exit 1
}
$nodeVersion = (node -v) -replace 'v', '' -split '\.' | Select-Object -First 1
if ([int]$nodeVersion -lt 18) {
Write-Host "Error: Node.js 18+ is required (found $(node -v))" -ForegroundColor Red
exit 1
}
Write-Host ""
Write-Host " 🔊 Installing Klonk..." -ForegroundColor Cyan
Write-Host ""
npx klonk @args