postcss-cli icon indicating copy to clipboard operation
postcss-cli copied to clipboard

Incorrect version number from cli?

Open ManzDev opened this issue 2 years ago • 4 comments

With postcss-cli 8.3.1 works fine:

$ npm install -D [email protected]
$ npx postcss --version
8.3.1

With postcss-cli 9.0.0+ don't works:

$ npm install -D [email protected]
$ npx postcss --version
1.0.0

ManzDev avatar Sep 30 '21 13:09 ManzDev

Yep, seems to be a known bug with our argument parser in ESM modules: https://github.com/yargs/yargs/issues/1934

RyanZim avatar Sep 30 '21 13:09 RyanZim

PR: https://github.com/postcss/postcss-cli/pull/406

RyanZim avatar Sep 30 '21 14:09 RyanZim

I have the same issue it shows 0.0.0 when it's 10.0.0

lk77 avatar Aug 31 '22 07:08 lk77

Yes, this is a known bug with a dependency we use; if anyone can work on fixing https://github.com/yargs/yargs/issues/1934, it would be appreciated.

RyanZim avatar Aug 31 '22 19:08 RyanZim