LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

npm-ls

lists installed packages

TLDR

List installed packages
$ npm ls
copy
List all depths
$ npm ls --all
copy
List specific package
$ npm ls [package-name]
copy
List global packages
$ npm ls -g
copy
JSON output
$ npm ls --json
copy
Production only
$ npm ls --production
copy
Show depth
$ npm ls --depth=[2]
copy

SYNOPSIS

npm ls [package] [options]

DESCRIPTION

npm ls lists installed packages. Shows dependency tree.The command displays package hierarchy. Identifies dependency versions.

PARAMETERS

PACKAGE

Package to find.
--all
Show all dependencies.
-g
Global packages.
--json
JSON output.
--depth N
Tree depth.
--help
Display help information.

INSTALL

sudo pacman -S npm
copy
sudo apk add npm
copy
brew install npm
copy

CAVEATS

Alias: npm list. Tree can be large. Use depth to limit.

HISTORY

npm ls provides dependency visualization for understanding package relationships.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid