Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Thursday, June 13, 2019
 
 

npm-ls (1)

Name

npm-ls - List installed packages

Synopsis

npm ls [[<@scope>/]<pkg> ...]

aliases: list, la, ll

Description

NPM-LS(1)                                                            NPM-LS(1)



NAME
       npm-ls - List installed packages

SYNOPSIS
         npm ls [[<@scope>/]<pkg> ...]

         aliases: list, la, ll

DESCRIPTION
       This command will print to stdout all the versions of packages that are
       installed, as well as their dependencies, in a tree-structure.

       Positional arguments are  name@version-range  identifiers,  which  will
       limit  the  results to only the paths to the packages named.  Note that
       nested packages will also show the paths  to  the  specified  packages.
       For example, running npm ls promzard in npm's source tree will show:

         npm@6.4.1 /path/to/npm
          init-package-json@0.0.4
            promzard@0.1.5

       It will print out extraneous, missing, and invalid packages.

       If  a  project  specifies  git urls for dependencies these are shown in
       parentheses after the name@version to make it easier for users to  rec-
       ognize potential forks of a project.

       The  tree shown is the logical dependency tree, based on package depen-
       dencies, not the physical layout of your node_modules folder.

       When run as ll or la, it shows extended information by default.

CONFIGURATION
   json
       o Default: false

       o Type: Boolean


       Show information in JSON format.

   long
       o Default: false

       o Type: Boolean


       Show extended information.

   parseable
       o Default: false

       o Type: Boolean


       Show parseable output instead of tree view.

   global
       o Default: false

       o Type: Boolean


       List packages in the global install prefix instead of  in  the  current
       project.

   depth
       o Type: Int


       Max display depth of the dependency tree.

   prod / production
       o Type: Boolean

       o Default: false


       Display only the dependency tree for packages in dependencies.

   dev / development
       o Type: Boolean

       o Default: false


       Display only the dependency tree for packages in devDependencies.

   only
       o Type: String


       When "dev" or "development", is an alias to dev.

       When "prod" or "production", is an alias to production.

   link
       o Type: Boolean

       o Default: false


       Display only dependencies which are linked


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+-------------------------+
       |ATTRIBUTE TYPE |    ATTRIBUTE VALUE      |
       +---------------+-------------------------+
       |Availability   | runtime/nodejs/nodejs-8 |
       +---------------+-------------------------+
       |Stability      | Pass-thru volatile      |
       +---------------+-------------------------+
SEE ALSO
       o npm help config

       o npm help 7 config

       o npm help 5 npmrc

       o npm help 5 folders

       o npm help install

       o npm help link

       o npm help prune

       o npm help outdated

       o npm help update





NOTES
       This     software     was    built    from    source    available    at
       https://github.com/oracle/solaris-userland.   The  original   community
       source    was   downloaded   from    https://github.com/nodejs/node/ar-
       chive/v8.15.1.zip

       Further information about this software can be found on the open source
       community website at https://github.com/nodejs/node.



                                  August 2018                        NPM-LS(1)