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

Experience Level: Junior
Tags: npm


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
Related npm job interview questions
npm for beginners
npm for beginners

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

Test yourself