github / github/copilot-cli

After upgrading GitHub Copilot CLI to `v1.0.46`, the CLI is no longer usable in my environment.

オープン
#3,281 コメント 6 件 リアクション 1 件 担当者 0 名 GitHub で見る
area:installation area:mcp
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

### Describe the bug

It starts, prints the normal startup banner, but then immediately reports:

✗ Failed to start MCP Servers: Error: Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.

### Affected version

GitHub Copilot CLI 1.0.46.

### Steps to reproduce the behavior

Version
GitHub Copilot CLI: 1.0.46
Previous version that worked: older versions / JS entry path still works in my environment
Installed globally with npm

Environment
OS: Linux
Architecture: x64
Node: v24.14.0
npm: installed globally with Node 24
glibc on system is relatively old

### Expected behavior

✗ Failed to start MCP Servers: Error: Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.

### Additional context

_No response_

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

ソースファイルやテストは指定されていません。まず、Node v24.14.0 と古い glibc を使用する Linux x64 上でグローバル npm インストールを再現し、次に失敗する CLI パスと、引き続き動作する JS エントリーパスを比較してください。バージョン 1.0.46 が native-binding エラーなしで起動し、その MCP サーバーを正常に起動できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
node.js
領域
cli
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
説明が足りない
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。