Node.js: Listing currently installed NPM packages
To generate a list (tree view) of currently installed packages, use
npm list
ls
, la
and ll
are aliases of list command. la
and ll
commands shows extended information like description and repository.
Options
The response format can be changed by passing options.
npm list --json
json
- Shows information in json formatlong
- Shows extended informationparseable
- Shows parseable list instead of treeglobal
- Shows globally installed packagesdepth
- Maximum display depth of dependency treedev/development
- Shows devDependenciesprod/production
- Shows dependencies
If you want, you can also go to the package's home page.
npm home <package name>
With all that being said, I highly recommend you keep learning!
Thank you for reading this article. Please feel free to connect with me on LinkedIn and Twitter.