Kinda Code
Home/Node/NPM: How To Show All Globally Installed Packages

NPM: How To Show All Globally Installed Packages

Last updated: January 26, 2022

To show all globally installed npm packages on your computer, just run the following command:

npm list -g --depth 0

Here is my output:

/usr/local/lib
├── @nestjs/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

If you want to see all global packages and their dependencies, use this:

npm list -g

That’s it. Further reading:

You can also check out our Node.js category page for the latest tutorials and examples.