github / github/copilot-cli

copilot command silently fails on Windows due to getCACertificates('system') error

Offen
#1,250 4 Kommentare 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area:platform-windows
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

### Describe the bug

The copilot CLI command silently exits without any output or error message on Windows 11 (on my machine). No error is displayed, making it very difficult to diagnose the issue.

### Affected version

0.0.400

### Steps to reproduce the behavior

1. Install GitHub Copilot CLI: `npm install -g @github/copilot`
2. Run copilot command: `copilot`
3. Command exits immediately with no output

### Expected behavior

The CLI should either:

- Work correctly
- Display a meaningful error message if something fails

### Additional context

**Investigation**
Running the script directly reveals the underlying error:

`node "C:\Users\...\AppData\Roaming\npm\node_modules\@github\copilot\index.js"`

```
node:tls:138
systemCACertificates ||= ObjectFreeze(getSystemCACertificates());

Error: X509 to PEM conversion
at cacheSystemCACertificates (node:tls:138:41)
at Module.getCACertificates (node:tls:193:14)
at Hcl (file:///C:/Users/.../AppData/Roaming/npm/node_modules/@github/copilot/index.js:150:9436)
at ohn (file:///C:/Users/.../AppData/Roaming/npm/node_modules/@github/copilot/index.js:150:8933)
at ihn (file:///C:/Users/.../AppData/Roaming/npm/node_modules/@github/copilot/index.js:3188:2888)
at file:///C:/Users/.../AppData/Roaming/npm/node_modules/@github/copilot/index.js:3849:955

Node.js v24.13.0
```

### Related issues
nodejs/node#61636 — Upstream issue about getCACertificates('system') failing without useful error information on Windows

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.