javascriptnode.jsnpmpackagepackage-managers

How to list npm user-installed packages?


How do I list the user-installed / environment package only in npm?

When I do npm -g list, it outputs every package and their dependencies. Instead I'd like to see the packages installed in the current working project or environment.


Solution

  • npm list -g --depth=0