DEV Community

Cover image for How to get a list of your globally installed NPM packages? The easy way.
Junior Batista
Junior Batista

Posted on

1 2

How to get a list of your globally installed NPM packages? The easy way.

If you have use NPM for some time you'd know that you can install packages using the -g flag.

At one point you would like to get a list of all you globally installed packages. You can accomplish that with npm list -g but that will show you an overwhelming list.

For a more user-friendly approach, I would recommend using npm list -g --depth 0 instead.

The inclusion of the --depth 0 flag means that npm will only list the packages at the top level of the tree.

Top comments (0)

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay