It does not run on Git bash console over Windows
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 56/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- bash, nodejs, typescript
調査の方向性
lib/services/ui.service.js と、スタックトレースに示されている lib/controller.js からの呼び出しから始め、その後 Windows 上の mintty を使用する Git Bash で npx npkill を再現します。unsupported-terminal のパスを追跡し、Git Bash が setRawMode is not a function で失敗せず、npkill を正常に実行できることを確認します。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- TypeScript
- スター
- 9.5k
- フォーク
- 259
- 平均マージ
- 1日 1時間
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
voidcosmos/npkill のほかの issue
-
Support for Android / Termux (`process.platform === 'android' `)対応中かも @kukirin-ui が 10 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
voidcosmos/npkill#274 · コメント 2 件 ·
-
Invalid count valueオープン
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
voidcosmos/npkill#258 ·
-
delete by --older-than flag対応中かも @Shreyakb301 が 24 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 64/100
voidcosmos/npkill#257 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
voidcosmos/npkill#220 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
voidcosmos/npkill#199 · コメント 1 件 · リアクション 1 件 ·
voidcosmos/npkill の issue をすべて見る
似ている issue
-
freshness freshness:observed-only
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
thoroc/context-radar#282 ·
-
bug P2 rust
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
area: web
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
gabe-santana/arkdraw#25 ·
-
bug require-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
expressjs/expressjs.com#2549 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue hacktoberfest
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
codercops/discord-bot#101 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信