Reduce duplicate package copies in the tree.
Section: Update and remove dependencies
Deduplicate dependencies
bash
bash
npm dedupeExplanation
Reduce duplicate package copies in the tree.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Update and remove dependencies