`--frozen-lockfile` fails after adding a workspace package with no dependencies
Author: spyroslontos-nlCreated Sep 26, 2026Updated Sep 26, 2026
Labelstype: bugarea: lockfilearea: monoreporegression
Last pnpm version that worked
11.28.0
pnpm version
12.7.0
Code to reproduce the issue
mkdir repro && cd repro
printf "packages:\n - web\n - scripts\n" > pnpm-workspace.yaml
echo '{"name":"repro","private":true}' > package.json
mkdir web && echo '{"name":"web","dependencies":{"is-odd":"3.0.1"}}' > web/package.json
pnpm install
mkdir scripts && echo '{"name":"scripts"}' > scripts/package.json
pnpm install
pnpm install --frozen-lockfileExpected behavior
The second pnpm install adds scripts to pnpm-lock.yaml, and pnpm install --frozen-lockfile passes. That's what pnpm 11.15.1 and 11.28.0 do.
Actual behavior
pnpm install leaves scripts out of pnpm-lock.yaml, then pnpm install --frozen-lockfile fails with ERR_PNPM_PACKAGE_MANAGER_NO_IMPORTER. Packages added before pnpm 12 are unaffected, because pnpm 11 wrote their entry. It hits new packages with no dependencies, which are common as script-only or shared-config packages.
Additional information
No response
Node.js version
24.21.0
Operating System
Linux
Source: pnpm/pnpm