List top level packages in NPM

Global: npm ls -g --depth=0 2>/dev/null

Project: npm ls --depth=0 2>/dev/null

You can drop the 2>/dev/null redirection but then you won't get a cleaner list of packages. You will also get any NPM ERR! that currently exist.

Leave a comment -