IT:AD:npm:HowTo:List Packages

Summary

Once you downloaded packages, locally or globally, you'll want to know what you have available.

list local packages
npm list
 
#or just top level
npm list -depth 0
list global packages
npm list -g
 
#or just top level
npm list -g -depth 0

Note: you can double check where the packages are being unpacked to using the npm root command:

npm root
 
or 
npm root -g
  • /home/skysigal/public_html/data/pages/it/ad/npm/howto/list_installed_packages.txt
  • Last modified: 2023/11/04 23:00
  • by 127.0.0.1