| Duration | Level | Prerequisites |
|---|---|---|
| 15 min | Beginner | Lab 00 complete; Windows machine with winget available |
Overview
GitHub Copilot CLI requires PowerShell 7 or higher on Windows and Node.js 22 or higher when installed via npm. The official README lists Node 18 as the minimum, but the npm package install path requires Node 22+. Install Node 22+ to satisfy both. After these prerequisites are in place, install the copilot CLI itself via winget, or fall back to the npm global install if winget is unavailable on your machine.
Learning objectives
- Verify that PowerShell 7+ is your active shell.
- Install Node.js 22+ via
wingetand confirm the version. - Install GitHub Copilot CLI via
winget(or npm fallback) and runcopilot --version.
Exercise 1.1 — Verify PowerShell 7+
- Open PowerShell 7+ (search for “PowerShell” in the Start menu and pick the non-Windows-PowerShell entry, or run
pwshfrom any terminal). -
Check the version:
$PSVersionTable.PSVersion - Confirm the
Majorcolumn reports7or higher. If it reports5, you are in Windows PowerShell 5.1, which GitHub Copilot CLI does not support — install PowerShell 7 from the Microsoft Store orwinget install Microsoft.PowerShellfirst.

Exercise 1.2 — Install Node.js 22+
-
In your PowerShell 7+ session, install the Node.js LTS:
winget install OpenJS.NodeJS.LTS - Close and re-open the terminal so the updated
PATHis loaded. -
Confirm the version is
v22.xor higher:node --version

Exercise 1.3 — Install GitHub Copilot CLI
-
Preferred path — install via
winget:winget install GitHub.Copilot copilot --version -
Fallback path — if
wingetis not available on your machine, install via npm after Lab 01 Exercise 1.2 succeeds:npm install -g @github/copilot copilot --version -
Confirm
copilot --versionprints a version string without errors.

Verification Checkpoint
Before proceeding, verify:
$PSVersionTable.PSVersionreports aMajorof 7 or higher.node --versionreportsv22.xor higher.copilot --versionprints a version string without errors.
Next Steps
Proceed to Lab 02 — Install the Copilot Studio VS Code extension.