lolski lolski - 7 months ago 27
Node.js Question

How to list npm user-installed packages?

How do I list the user-installed package ONLY in

npm
? When I do
npm -g list
it outputs every package and their dependencies, which is not what I want.

Answer

This works pretty well too: npm list -g --depth=0