Create Node JS Project using NPM
Create Node JS Project using NPM ~10 mins

Task 1: Create Node JS Project

  mkdir project1
cd project1

Task 2: Initialize Node JS Project

  npm init

Note: Press Enter to use the default values.

  package name: (project1)
version: (1.0.0)
description:
entry point: (index.js)
test command:
git repository:
keywords:
author:
license: (ISC)
About to write to D:\Sify\nodejs\project1\package.json:

{
"name": "project1",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}


Is this OK? (yes)

(or)

Task 3: Open the package.json

  {
"name": "project1",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}

Task 4: Create a second project

    mkdir project2
cd project2
npm init -y