[BUG] npm completion
errors when run on cygwin terminals
#8137
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
platform:windows
is Windows-specific
Uh oh!
There was an error while loading. Please reload this page.
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
In a cygwin terminal:
Expected Behavior
I would expect this behavior:
The reason I expect this behavior is because the output works as expected when
source
d. Here's how I tested that:cli/lib/commands/completion.js
Lines 74 to 79 in 8461186
source <(npm completion)
on my cygwin terminalnpm install --legacy<tab key>
on the CLI and it expanded tonpm install --legacy-bundling
.In addition:
npm completion
in vscode's integrated terminal, it outputs:npm completion
in a cygwin terminal, it outputs:npm completion
in a windows cmd terminal and embed cygwin viac:\cygwin64\bin\bash.exe --login -i
, it outputs:In other words,
process.env.TERM !== 'cygwin'
does not catch all cygwin environments.Steps To Reproduce
npm completion
Environment
The text was updated successfully, but these errors were encountered: