NPM: How To Show All Globally Installed Packages

Updated: January 26, 2022 By: A Goodman Post a comment

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.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

Related Articles