Setup node.js for a new project

Node.js should be installed first on your machine.
After a successful installation node -v and npm -v commands should work in your terminal:
npm -v
v16.15.1

npm -v
8.11.0

Inside your project root directory run:

npm init es6

You will be asked to enter several attributes for your project.
If you want the default values just enter:

npm init es6 -y

This will initialize our folder as a new npm package.
It will create a package.json file with basic information about our project:

package.json
{
  "name": "",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "type": "module",
  "license": "AGPL-version-3.0",
  "private": false,
  "engines": {
    "node": ">= 14.0.0",
    "npm": ">= 6.0.0"
  },
  "homepage": "",
  "repository": {
    "type": "git",
    "url": ""
  },
  "bugs": "",
  "keywords": [],
  "author": {
    "name": "",
    "email": "",
    "url": ""
  },
  "contributors": [
 
  ],
  "scripts": {
    "dev": "",
    "test": ""
  },
  "dependencies": {
 
  },
  "devDependencies": {
 
  }
}