Verify latest release
pnpm version
11.0.1
Which area(s) of pnpm are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
https://github.com/kaidjohnson/pnpm11-bug/tree/pnpm%4011
Reproduction steps
Steps to Reproduce
pnpm i --frozen-lockfile
Describe the Bug
When attempting to install from a lockfile that points to a file:./package.tgz, the resolver appears to attempt to find that package on the registry rather than using the local file tarball as instructed. This functionality worked in pnpm@10, but has regressed in pnpm@11
Expected Behavior
- The installation should succeed without any errors.
Actual
- The installation fails with the following error:
ERR_PNPM_FETCH_404 GET https://registry.npmjs.org/test-package/-/test-package-1.0.0.tgz: Not Found - 404
Note: This error is not reproducible using the pnpm@10 branch https://github.com/kaidjohnson/pnpm11-bug/tree/pnpm%4010
Which Node.js version are you using?
24.14.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
Debian
Verify latest release
pnpm version
11.0.1
Which area(s) of pnpm are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
https://github.com/kaidjohnson/pnpm11-bug/tree/pnpm%4011
Reproduction steps
Steps to Reproduce
pnpm i --frozen-lockfileDescribe the Bug
When attempting to install from a lockfile that points to a
file:./package.tgz, the resolver appears to attempt to find that package on the registry rather than using the local file tarball as instructed. This functionality worked inpnpm@10, but has regressed inpnpm@11Expected Behavior
Actual
Note: This error is not reproducible using the
pnpm@10branch https://github.com/kaidjohnson/pnpm11-bug/tree/pnpm%4010Which Node.js version are you using?
24.14.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
Debian