npm -v
mkdir project1
cd project1
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:\nodejs\project1\package.json:
Is this OK? (yes)
{
"name": "project1",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}
mkdir project2
cd project2
npm init -y