npm ls <[@scope]/pkg...>
List installed packages
Arguments
Name | Description |
---|---|
[@scope]/pkg |
Options
Name | Description |
---|---|
-a, -all | Show all outdated or installed packages |
--json | Show output in json format |
-l, --long | Show extended information |
-p, --parseable | Output parseable results from commands that write to standard output |
--depth <depth> | The depth to go when recursing packages |
--link | Limits output to only those packages that are linked |
--package-lock-only | Current operation will only use the package-lock.json, ignoring node_modules |
--no-unicode | Uses unicode characters in the tree output |
-g, --global | Operates in 'global' mode, so that packages are installed into the prefix folder instead of the current working directory |
--omit <Package type> |
|
-w, --workspace <workspace...> | Enable running a command in the context of the configured workspaces of the current project |
-ws, --workspaces | Enable running a command in the context of all the configured workspaces |