Skip to content

Instantly share code, notes, and snippets.

@Arxcis
Created September 18, 2018 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Arxcis/42ef654a811cf5b7b801a61800d41dd5 to your computer and use it in GitHub Desktop.
Save Arxcis/42ef654a811cf5b7b801a61800d41dd5 to your computer and use it in GitHub Desktop.
npm init
jonasjso in ~/Desktop/npmcoolinit
$ npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.
See `npm help json` for definitive documentation on these fields
and exactly what they do.
Use `npm install <pkg>` afterwards to install a package and
save it as a dependency in the package.json file.
Press ^C at any time to quit.
package name: (npmcoolinit)
version: (1.0.0)
description:
entry point: (index.js)
test command:
git repository:
keywords:
author:
license: (ISC)
About to write to /Users/jonasjso/Desktop/npmcoolinit/package.json:
{
"name": "npmcoolinit",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}
Is this OK? (yes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment