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
Related npm job interview questions
-
Using npm, how can you display a list of all installed global packages?
npm Junior -
What does npm audit fix command do and when would you use it?
npm Junior -
Using npm, how do you check if there is a newer version of some the project package?
npm Mid-level -
Using npm, how do you uninstall a package?
npm Junior -
Where can you find modules that the npm installed locally after you executed the npm install command?
npm Junior