Skip to content

pnpm install --frozen-lockfile and pnpm test are broken on pnpm 11 (overrides moved) #30

Description

@oschaaf

In skill-harness/, pnpm install --frozen-lockfile fails on current pnpm (11.x):

ERR_PNPM_LOCKFILE_CONFIG_MISMATCH  Cannot proceed with the frozen installation.
The current "overrides" configuration doesn't match the value found in the lockfile

Cause: package.json declares its overrides under the pnpm key, which pnpm 11 no longer reads ([WARN] The "pnpm" field in package.json is no longer read by pnpm). pnpm test also exits 1 before reaching the tests, because pnpm's implicit deps-status check re-runs install and trips over the ignored esbuild build script.

Workaround in the meantime: pnpm install --no-frozen-lockfile, then run the suite directly with node --import tsx --test 'src/__tests__/**/*.test.ts'.

Suggested work

Move overrides to the location pnpm 11 reads, re-record the lockfile, and confirm both pnpm install --frozen-lockfile and pnpm test work again from a clean checkout.

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