Creating a node package

  1. Let's create a node package in the current folder that we are located in:
npm init 
  1. 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:
  1. We could also enter the following command line to do the same, filling in all the questions with the default answers:
npm init -y 

Get ASP.NET Core MVC 2.0 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.