When installing packages using npm, where are the dependencies listed?

  • In the "package.json" file under the "dependencies" section
  • In the "node_modules" directory
  • In the project's main JavaScript file
  • In a separate "dependencies.json" file
When you install packages using npm, the dependencies are listed in the "package.json" file under the "dependencies" section. This file acts as a manifest for your project and keeps track of its dependencies.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *