With postcss-cli 8.3.1 works fine: ```bash $ npm install -D postcss-cli@8.3.1 $ npx postcss --version 8.3.1 ``` With postcss-cli 9.0.0+ don't works: ```bash $ npm install -D postcss-cli@9.0.1 $ npx postcss --version 1.0.0 ```
Activity
RyanZim commentedon Sep 30, 2021
Yep, seems to be a known bug with our argument parser in ESM modules: yargs/yargs#1934
Workaround yargs bug with --version
RyanZim commentedon Sep 30, 2021
PR: #406
lk77 commentedon Aug 31, 2022
I have the same issue it shows 0.0.0 when it's 10.0.0
RyanZim commentedon Aug 31, 2022
Yes, this is a known bug with a dependency we use; if anyone can work on fixing yargs/yargs#1934, it would be appreciated.
franz-josef-kaiser commentedon May 30, 2024
Releases also lag behind tags somehow.
RyanZim commentedon May 30, 2024
@franz-josef-kaiser https://github.com/postcss/postcss-cli/blob/master/CHANGELOG.md has the updated info; I've stopped updating GH releases, as it's just duplicate work.
RyanZim commentedon Aug 11, 2026
Seems to be working on the latest version: