Verify latest release
pnpm version
No response
Which area(s) of pnpm are affected? (leave empty if unsure)
CLI
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
- Use pnpm v11 in a monorepo workspace
- Run
pnpm --filter <package> exec <command>
- Observe that pnpm performs a full workspace install before executing
Describe the Bug
Since upgrading to pnpm v11, running pnpm --filter <package> exec <command> triggers a full workspace install before executing the command. This was surfaced by the change in pnpm v11 to make verifyDepsBeforeRun default to install.
Expected Behavior
It installs only the filtered package's dependencies.
Which Node.js version are you using?
24.15.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response
Verify latest release
pnpm version
No response
Which area(s) of pnpm are affected? (leave empty if unsure)
CLI
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
pnpm --filter <package> exec <command>Describe the Bug
Since upgrading to pnpm v11, running
pnpm --filter <package> exec <command>triggers a full workspace install before executing the command. This was surfaced by the change in pnpm v11 to makeverifyDepsBeforeRundefault to install.Expected Behavior
It installs only the filtered package's dependencies.
Which Node.js version are you using?
24.15.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response