Using npm, how can you display a list of all installed global packages?

Experience Level: Junior
Tags: npm

Answer

To display a list of globally installed packages (modules), open the command-line, change your current directory to the directory that contains your project with file package.json and run the following command:

npm list -g

Comments

No Comments Yet.
Be the first to tell us what you think.
npm for beginners
npm for beginners

Are you learning npm ? Try our test we designed to help you progress faster.

Test yourself