Skip to content

Node 25.7.0 runtime failure from yargs v17 (require is not defined) #708

Description

@chenrui333

After Node 25.7.0 rollout in Homebrew (homebrew/homebrew-core#269249), marp-cli fails at runtime due to yargs v17.

Error:

ReferenceError: require is not defined in ES module scope, you can use import instead
at .../node_modules/yargs/yargs:3
Node.js v25.7.0

Homebrew failure evidence:

Local repro with Homebrew bottle:

  • marp --version fails with the same stack

Upstream context:

Could you cut a fix/release compatible with Node 25.7+ (or otherwise advise a supported workaround)?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstreamCaused in upstream, not in this repo

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions