-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Labels
Description
Verify latest release
- I verified that the issue exists in the latest pnpm release
pnpm version
No response
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
No response
Reproduction steps
- Run
pnpm init, - Run
pnpm add node@runtime:^22.20 - See that in lockfile,
packages['node@runtime:22.20.0'].versionis set to22.20.0, - Run
pnpm add picocolors, packages['node@runtime:22.20.0'].versionis now set to0.0.0and thehasBinkey has been deleted.- If you now run
pnpm dedupenow, the version will be restored back to22.20.0.
Describe the Bug
If node is installed via devEngines, it's entry in lockfile gets corrupted when installing any package.
Expected Behavior
Installing a package doesn't affect node version in the lockfile.
Which Node.js version are you using?
v24.8.0
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
Reactions are currently unavailable