Skip to content

Incorrect version number from cli? #405

Closed

Description

@ManzDev

With postcss-cli 8.3.1 works fine:

$ npm install -D postcss-cli@8.3.1
$ npx postcss --version
8.3.1

With postcss-cli 9.0.0+ don't works:

$ npm install -D postcss-cli@9.0.1
$ npx postcss --version
1.0.0

Activity

  1. RyanZim commented on Sep 30, 2021

    @RyanZim
    Collaborator

    Yep, seems to be a known bug with our argument parser in ESM modules: yargs/yargs#1934

  2. added a commit that references this issue on Sep 30, 2021
    2e64c9c
  3. RyanZim commented on Sep 30, 2021

    @RyanZim
    Collaborator

    PR: #406

  4. lk77 commented on Aug 31, 2022

    @lk77

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

  5. RyanZim commented on Aug 31, 2022

    @RyanZim
    Collaborator

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

  6. franz-josef-kaiser commented on May 30, 2024

    @franz-josef-kaiser

    Releases also lag behind tags somehow.

  7. RyanZim commented on May 30, 2024

    @RyanZim
    Collaborator

    @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.

  8. RyanZim commented on Aug 11, 2026

    @RyanZim
    Collaborator

    Seems to be working on the latest version:

    $ postcss --version
    11.0.1
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions