It does not run on Git bash console over Windows
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 56/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- bash, nodejs, typescript
Hướng nghiên cứu
Bắt đầu với lib/services/ui.service.js và các lệnh gọi từ lib/controller.js được hiển thị trong stack trace, sau đó tái hiện npx npkill trong Git Bash với mintty trên Windows. Theo dõi đường dẫn unsupported-terminal và xác minh rằng Git Bash không còn thất bại với setRawMode is not a function và có thể chạy npkill thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
After running npx npkill in git bash console over windows I get this
Admin@DESKTOP-55L0JCL MINGW64 ~
$ npx npkill
Oh no! Npkill does not support this terminal (TTY is required). This is a bug, which has to be fixed. Please try another command interpreter (for example, CMD in windows)
file:///C:/Users/Admin/AppData/Local/npm-cache/_npx/f2cdc353fc2aaf50/node_modules/npkill/lib/services/ui.service.js:7
this.stdin.setRawMode(set);
^
TypeError: this.stdin.setRawMode is not a function
at UiService.setRawMode (file:///C:/Users/Admin/AppData/Local/npm-cache/_npx/f2cdc353fc2aaf50/node_modules/npkill/lib/services/ui.service.js:7:20)
at Controller.exitWithError (file:///C:/Users/Admin/AppData/Local/npm-cache/_npx/f2cdc353fc2aaf50/node_modules/npkill/lib/controller.js:403:24)
at Controller.checkScreenRequirements (file:///C:/Users/Admin/AppData/Local/npm-cache/_npx/f2cdc353fc2aaf50/node_modules/npkill/lib/controller.js:228:18)
at Controller.checkRequirements (file:///C:/Users/Admin/AppData/Local/npm-cache/_npx/f2cdc353fc2aaf50/node_modules/npkill/lib/controller.js:216:14)
at Controller.init (file:///C:/Users/Admin/AppData/Local/npm-cache/_npx/f2cdc353fc2aaf50/node_modules/npkill/lib/controller.js:54:14)
at default (file:///C:/Users/Admin/AppData/Local/npm-cache/_npx/f2cdc353fc2aaf50/node_modules/npkill/lib/main.js:19:33)
at file:///C:/Users/Admin/AppData/Local/npm-cache/_npx/f2cdc353fc2aaf50/node_modules/npkill/lib/index.js:3:1
at ModuleJob.run (node:internal/modules/esm/module_job:413:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:660:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5)
Node.js v24.12.0
To Reproduce
Steps to reproduce the behavior:
- Go to
- Command '....'
- See error
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
First run
Second time
- OS: [e.g. Window]:
- Version [ npkill -v ]: 0.12.2
- mintty 3.7.4
Additional context
Add any other context about the problem here.
- Ngôn ngữ chính
- TypeScript
- Star
- 9.5k
- Fork
- 257
- Merge trung bình
- 1 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của voidcosmos/npkill
-
Support for Android / Termux (`process.platform === 'android' `)Có thể đã có người làm @kukirin-ui đã nhận 1 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
voidcosmos/npkill#274 · 2 bình luận ·
-
Invalid count valueĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
voidcosmos/npkill#258 ·
-
delete by --older-than flagCó thể đã có người làm @Shreyakb301 đã nhận 15 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 64/100
voidcosmos/npkill#257 · 1 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
voidcosmos/npkill#220 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
voidcosmos/npkill#199 · 1 bình luận · 1 reaction ·
Tất cả issue của voidcosmos/npkill
Issue tương tự
-
bug engine
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
frostney/GocciaScript#1746 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
agilepathway/label-checker#739 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Wrong key location at startupĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
CopilotKit/OpenBot#800 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Endpoint links in the tag operations list are below the 24px target sizeCó thể đã có người làm @AdzerKI đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
ehmpathy/rhachet-roles-bhuild#471 ·
Maintainer thường phản hồi trong vòng 1 ngày