You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 508f223
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: install.ps1
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3,19 +3,22 @@ $ErrorActionPreference = "Stop"
3
3
# Check git first
4
4
if (!(Get-Command git -ErrorAction SilentlyContinue)) {
5
5
Write-Host"Error: git is required but not installed."-ForegroundColor Red
6
+
Pause
6
7
exit1
7
8
}
8
9
9
10
# Validate Node.js version
10
11
if (!(Get-Command node -ErrorAction SilentlyContinue)) {
11
12
Write-Host"Error: Node.js version 20 or higher is required."-ForegroundColor Red
13
+
Pause
12
14
exit1
13
15
}
14
16
15
17
$nodeVersion= (node -v) -replace'^v',''
16
18
$major= [int]($nodeVersion-split'\.')[0]
17
19
if ($major-lt20) {
18
20
Write-Host"Error: Node.js version 20 or higher is required (Node.js 22.x is recommended)."-ForegroundColor Red
21
+
Pause
19
22
exit1
20
23
}
21
24
@@ -40,6 +43,7 @@ if ($availableEditors.Count -eq 0) {
40
43
Write-Host"Hint: If your editor is installed, you might need to add its command to your PATH."-ForegroundColor Yellow
41
44
Write-Host"Open your editor, open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P), and run a command like: `"Shell Command: Install 'cursor' command in PATH`" (or 'agy-ide', etc.)."-ForegroundColor Yellow
42
45
Write-Host"Error: No supported editors found in your PATH."-ForegroundColor Red
0 commit comments