See the written version of this tutorial, links to prerequisites, and related tutorials: https://heynode.com/tutorial/create-p...
Part of learning Node.js is creating a package.json file using npm init, but you can also create one automatically. Creating a package.json file is typically the first step in a Node project, and you need one to install dependencies in npm. If you're starting a project from scratch, you create a package.json file to hold important metadata about your project and record your dependencies. When you run npm init to generate a package.json, you can accept the suggested defaults, or fill out your own information.
In this tutorial, we'll:
-Create a package.json file using npm init
-Inspect the generated file and explore the defaults
-Learn how to generate a package.json automatically
Heynode.com: the best online Node.js courses and tutorials to help you solve hard problems fast.