Have you failed a job interview?
Send us your job interview questions and get correct answers.

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


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