How do I list the user-installed / envirorment 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 envirorment.
Path of Global Packages in the system: Global modules are installed in the standard system in root location in system directory /usr/local/lib/node_modules project directory. Command to print the location on your system where all the global modules are installed.
Description. The npm ls command will print to stdout all the versions of a package that is installed, including their dependencies in a tree-structure. Positional arguments serve as name@version-range identifiers, which limits the results to the packages path alone.
npm list -g --depth=0
-g
option it only shows the current directory’s packages)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With