How to list the npm user-installed packages?

Answer

npm list -g --depth=0

1. npm: the Node package manager command line tool
2. list -g: display a tree of every package found in the user’s folders (without the -g option it only shows the current directory’s packages)
3. --depth 0 /--depth=0: avoid including every package’s dependencies in the tree view

 

All npm Questions

Ask your interview questions on npm

Write Your comment or Questions if you want the answers on npm from npm Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---