First NodeJS Project

Ingredients

  • NodeJS

Bake Time

  • 1 - 2 min

Instructions

Basic steps to creating a NodeJS package.json file.

Quick Initialize project

Command Line

$ npm init -f

Prompted Initialization of Project

Command Line

$ npm init
name: (test)
version: (1.0.0)
description:
entry point: (index.js)
test command:
git repository:
keywords:
author:
license: (ISC)
About to write to /home/user/test/package.json:

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


Is this ok? (yes)