Skip to content

pnpm failed to parse pnpm-lock.yaml with configDependencies and CRLF line ending #11612

@OpportunityLiu

Description

@OpportunityLiu

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

v10, v11

Which area(s) of pnpm are affected? (leave empty if unsure)

Lockfile

Link to the code that reproduces this issue or a replay of the bug

https://github.com/OpportunityLiu/pnpm-action-11/actions/runs/25774892800

Reproduction steps

Checkout and install a project with configDependencies on Windows with default Git config. pnpm-lock.yaml will have CRLF line ending.

pnpm will report ERR_PNPM_BROKEN_LOCKFILE or outdated lockfile.

Describe the Bug

pnpm failed to parse pnpm-lock.yaml with configDependencies and CRLF line ending.

pnpm 11:

Image

pnpm 10:

Image

Expected Behavior

Can install correctly.

Which Node.js version are you using?

22.22.2

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions