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 wa
For Local module usenpm list --depth 0
Foe Global module npm list -g --depth 0
Example local npm module Example global npm module
Use npm list
and filter by contains using grep
Example:
npm list -g | grep name-of-package
This works pretty well too: npm list -g --depth=0