Search code examples
node.jsubuntunpmnpm-cli

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

  • The below command will list all your globally installed modules on Linux, Mac, and Windows.

    npm ls -g --depth 0