voidcosmos / voidcosmos/npkill

It does not run on Git bash console over Windows

Open
#263 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
9.4k
Forks
254
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with lib/services/ui.service.js and the calls from lib/controller.js shown in the stack trace, then reproduce npx npkill in Git Bash with mintty on Windows. Trace the unsupported-terminal path and verify that Git Bash no longer fails with setRawMode is not a function and can run npkill successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, nodejs, typescript
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
56/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.