From 212137139a5b786bafdbc448d5e485a0ad984349 Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Thu, 1 May 2014 16:36:16 -0700 Subject: [PATCH] add installation docs back wtf... --- docs/api/index.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/api/index.md b/docs/api/index.md index 0ac6e57..60b8787 100644 --- a/docs/api/index.md +++ b/docs/api/index.md @@ -1,3 +1,13 @@ +# Installation + + Koa currently requires node 0.11.x for the --harmony flag which exposes generators to your script. If you're running an earlier version of node you may install [n](https://github.com/visionmedia/n), a node version manager to quickly install 0.11.x: + +``` +$ npm install -g n +$ n 0.11.12 +$ node --harmony my-koa-app.js +``` + # Application A Koa application is an object containing an array of middleware generator functions