Sunday, March 4, 2018

How to show all globally installed NPM packages

In this post, I want to show you how to list all installed NPM packages.
Type this command:

npm ls
npm list
npm la
npm ll
it will list all packages in current folder but it is locally not in globally. To do this we need to add option -g so it will list all with sub tree of packages.

npm list -g



On the other hand, if you can show only top level by add --depth=0

npm list -g --depth=0


No comments:

Post a Comment