Delete packages not listed in manifests.
Section: Update and remove dependencies
Remove extraneous packages
bash
bash
npm pruneExplanation
Delete packages not listed in manifests.
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