Skip to content

bun pm migrate fails on pnpm lockfile v9 (InvalidPnpmLockfile) #25826

@schickling

Description

@schickling

What happens?

Running bun pm migrate in a repo with a pnpm v9 lockfile fails immediately with InvalidPnpmLockfile. bun install --lockfile-only also reports the same error and then ignores the lockfile.

Steps to reproduce

  1. Create or open a repo with a pnpm lockfile v9 (e.g. lockfileVersion: '9.0').
  2. Run: bun pm migrate

Actual output

error: Error loading lockfile: InvalidPnpmLockfile

Expected

bun pm migrate should migrate a pnpm v9 lockfile, or at least provide a more specific error with a way to bypass/force/skip.

Environment

  • Bun: 1.3.5 (1e86ceb)
  • pnpm lockfileVersion: 9.0 (pnpm 10.17.1)
  • OS: macOS

Filed on behalf of @schickling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions