From 60df92cfba3c59ffb3a4170e09d0ebd81ea34440 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Tue, 15 Nov 2016 10:16:14 -0500 Subject: [PATCH] simplify steps --- docs/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation.md b/docs/installation.md index 836142bc..f726ef90 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -6,7 +6,7 @@ NPM (Node package manager) is the default package manager that is bundled w/ Nod To use Mithril via NPM: -- go to your project folder, and run `npm init` from the command line. This will ask some questions (you can just press enter in all of them to set default values), and a file called `package.json` will be created. +- go to your project folder, and run `npm init --yes` from the command line. This will create a file called `package.json`. - run `npm install mithril@rewrite --save`. This will create a folder called `node_modules`, and a `mithril` folder inside of it. It will also add an entry under `dependencies` in the `package.json` file You are now ready to start using Mithril. The recommended way to structure code is to modularize it via CommonJS modules: