Which file is created by default when you run the npm init command in a Node.js project?

  • package.json
  • index.js
  • node_modules
  • app.js
When you run npm init in a Node.js project, it creates a package.json file by default. This file is used to manage project dependencies, scripts, and other project-related information. The other options are not created by npm init itself.
Add your answer
Loading...

Leave a comment

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