list all globally installed modules with one command in ubuntu
I'm working on ubuntu 14.04
, Is there any way to print all global modules (installed using npm
) to the command line. How can I do this?
Solution 1:
The below command will list all your globally installed modules on Linux, Mac, and Windows.
npm ls -g --depth 0
Solution 2:
To list all globally installed modules run:
npm ls -g --depth 0
or yarn
yarn global ls --depth 0
Extras:
To get a short module description run:
npm ll -g --depth 0
To see the path of where the global modules are installed run:
npm ls -gp --depth 0