- Let's create a node package in the current folder that we are located in:
npm init
- We answer a series of questions (regarding the author, name, license, and so on) that will fill the package.json file that will be created. Pressing Enter for each question will give the default answer to the question:
- We could also enter the following command line to do the same, filling in all the questions with the default answers:
npm init -y