github / github/copilot-cli

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

Đang mở
#997 6 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:platform-linux
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

### 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_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.