List Globally Installed npm Packages on Windows
See every npm package installed globally (tools like serve, nodemon, yarn) with one command.
01Command
$ npm list -g --depth=002What it does
Global npm packages live outside any project and provide command-line tools you use everywhere — over months they pile up and you forget what's installed. `npm ls -g --depth=0` prints just the top-level global packages with their versions, without the huge dependency trees. Uninstall anything you no longer need with `npm uninstall -g <name>`.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- npm-ls | npm DocsEvidence: npm ls -g --depth=0 lists globally installed packages at the top level without their dependency trees.
Last verified: 2026-09-18 · Category: Developer
06Related solutions
Use Windows Package Manager to install, search, and upgrade thousands of applications from the community repository in one command.
Understand PowerShell's execution policy scopes and set the one that lets you run your own local scripts without gutting the security model.
List installed applications that have a newer version available, then upgrade selectively.