New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pnpm install --filter
(to install dependencies only for selected workspace projects) not working with dedupe-peer-dependents
set to true
#6300
Comments
pnpm install --filter
to install dependencies only for selected workspace projects not workingpnpm install --filter
to install dependencies only for selected workspace projects not working (v8.0.0)
I'm experiencing this bug too. I noticed when I tried to install only root workspace dependencies and it begun installing all dependencies. I also tried clearing node_modules, pnpm store, etc. pnpm i -w # installs all dependencies in 8.0.0 |
This is probably happening because this setting is true by default: https://pnpm.io/npmrc#dedupe-peer-dependents |
Couldn't the deduping only be applied to what is being installed with the |
pnpm install --filter
to install dependencies only for selected workspace projects not working (v8.0.0)pnpm install --filter
(to install dependencies only for selected workspace projects) not working with dedupe-peer-dependents
set to true
It is happening for me too. #6451 |
I am also facing this issue with pnpm@7.32.2. |
yeah it's still a problem |
Do we have any updates on this issue? 🤔 |
It seems like |
Hi there, |
@mm-edtake If you want to use
|
As a dirty workaround, you can delete folders of unwanted packages before installing in your CI/CD. |
I've also noticed that setting |
i'm finding on pnpm 8.7.0
Was this flag removed? |
@osdiab FYI |
Thanks for that - it does work then, but yeah due to aforementioned issues from other commenters it doesn't help in CI. Eagerly awaiting this to be resolved, as installs are using up a lot of CI time and therefore costing my company real dollars. |
|
We probably need a notice on doc site to indicate that |
UPD: missed that
|
Do we actually understand the root-cause of this issue? |
@khokm what's your approach for this issue? Installing dependencies of local packages manually? |
@urbanisierung i'm just appending an ellipsis i.e. Also i feel like my issue is unrelated to this thread, because i don't care about deduplication. I just set dedupe-peer-dependents to false in |
pnpm version:
dedupe-peer-dependents
not set (thustrue
= default value of v8.0.0)dedupe-peer-dependents
set tofalse
Code to reproduce the issue:
https://github.com/pkerschbaum/pnpm-issue-workspaces-no-filter-applied-for-install
Expected behavior:
pnpm install --filter "package-a"
should only install dependencies of workspace projectpackage-a
.Actual behavior:
It installs all dependencies.
I tried to also clean the pnpm store before (
rm -rf $(pnpm store path)
) because I thought maybe pnpm installs more dependencies when they are on the machine already in the store, but even then all dependencies get downloaded&installed.Additional information:
node -v
prints: v16.19.0The text was updated successfully, but these errors were encountered: