Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

It does not run on Git bash console over Windows

Đang mở
#263 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Lĩnh vực
cli, tooling

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:

  1. Go to
  2. Command '....'
  3. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
First run

Image

Second time

Image
  • 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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của voidcosmos/npkill

Tất cả issue của voidcosmos/npkill

Issue tương tự

Thêm issue về TypeScript

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.