github / github/copilot-cli

Copilot fails with error @github/copilot-linux-x64/copilot: 1: Syntax error: ")" unexpected

未關閉
#997 6 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area:platform-linux
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the bug

After upgrading copilot it stopped working entirely with the error

`/root/.local/share/mise/installs/node/22.21.1/lib/node_modules/@github/copilot/node_modules/@github/copilot-linux-x64/copilot: 1: Syntax error: ")" unexpected`

### Affected version

_No response_

### Steps to reproduce the behavior

Setup information

1. In WSL 1 install mise https://mise.jdx.dev/ (Ubuntu 20.04)
2. Install node 20 or 22 via mise e.g. `mise use node@22`
3. Install github copilot via npm i -g @github/copilot either latest version or pre-release

Try to run

copilot

An error appears

`/root/.local/share/mise/installs/node/22.21.1/lib/node_modules/@github/copilot/node_modules/@github/copilot-linux-x64/copilot: 1: Syntax error: ")" unexpected`

Previously it worked fine for me

### Expected behavior

copilot runs properly

### Additional context

_No response_

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。