Show only direct dependencies.
Section: Package maintenance
List top-level packages only
bash
bash
npm ls --depth=0Explanation
Show only direct dependencies.
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 Package maintenance