You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I assume it's similar to npm prune, but pnpm is sufficiently different that specific behavior is not obvious. Plus understanding its function requires reading npm docs.
Right now pnpm docs just say that it "removes unnecessary packages". What exactly does "unnecessary" mean?
I started looking at it because I want to delete all cached files for a project without deleting the project itself -- both node_modules and all the packages in store not used by other projects, similar to Rust's cargo clean. I assume pnpm prune doesn't do that?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
What does
pnpm prune
actually do?I assume it's similar to
npm prune
, butpnpm
is sufficiently different that specific behavior is not obvious. Plus understanding its function requires readingnpm
docs.Right now
pnpm
docs just say that it "removes unnecessary packages". What exactly does "unnecessary" mean?I started looking at it because I want to delete all cached files for a project without deleting the project itself -- both
node_modules
and all the packages in store not used by other projects, similar to Rust'scargo clean
. I assumepnpm prune
doesn't do that?Beta Was this translation helpful? Give feedback.
All reactions