Muhsin Muhsin - 23 days ago 7
Node.js Question

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?

Answer

The below command will list all your globally installed modules with one simple command:

npm ls -g --depth 0