Skip to content

It does not run on Git bash console over Windows #263

Description

@emiliodeg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions