Using npm, how do you list installed modules?

Experience Level: Junior
Tags: npm

Answer

To list installed modules, open a command-line, go to your project folder that contains a file package.json and run the following command:

npm list

The list command has multiple aliases so you can also use one of the following versions:

npm ls

or

npm la

or

npm ll

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