After upgrading GitHub Copilot CLI to `v1.0.46`, the CLI is no longer usable in my environment.
- 主要言語
- 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