npkgz / cli-progress

:hourglass: easy to use progress-bar for command-line/terminal applications
https://www.npmjs.com/package/cli-progress
MIT License
1.11k stars 84 forks source link

no progress bar on NPM #107

Closed yosion-p closed 3 years ago

yosion-p commented 3 years ago

Describe : We used cli-progress in the project, which is normal in the development environment; Then we released our project on NPM, ran it with the project on NPM, and found that the progress bar cannot be displayed on gitbash; This is the NPM link for our project:https://www.npmjs.com/package/@originjs/webpack-to-vite; and this is our Repository: https://github.com/originjs/webpack-to-vite;

How To Reproduce:

  1. download
    npm install @originjs/webpack-to-vite -g
  2. convert
    webpack-to-vite -d <project path>

    image The first line of command in the picture uses the development environment, and the result is normal; node ./dist/bin/index -d ../project-to-test/vue-manage-system The second line of code is the package published after NPM, and the progress bar is not displayed。 webpack-to-vite -d ../project-to-test/vue-manage-system

Environment Version Description: OS: windows 64 gitBash: Git-2.31.1-64-bit Repository of Conversion project:https://github.com/lin-xin/vue-manage-system.git (branch is dev)

========That's all=========

AndiDittrich commented 3 years ago

Hi @yosion-p

it sounds like a "known" issue regarding the isTTY check on windows systems (cmd.exe, gitbash). it's caused by the invocation by the .bat file instead of a direct call via node interpreter.

in the past, the issue didn't appeared in PowerShell.

yosion-p commented 3 years ago

Hi @yosion-p

it sounds like a "known" issue regarding the isTTY check on windows systems (cmd.exe, gitbash). it's caused by the invocation by the .bat file instead of a direct call via node interpreter.

in the past, the issue didn't appeared in PowerShell.

Thank you for your reply; Indeed, the issue only appears on gitbash.