title: I'm not able to solve an error in nodejs using express framework
body: <p>I'm a totally beginner with node.js and express framework. I'm following these <a href="https://www.youtube.com/watch?v=cgCxvgOLf2k" rel="nofollow">tutorials</a>.</p>
  
  <p>Here's my code:  </p>
  
  <pre><code>var fs = require("fs");
  var config = JSON.parse(fs.readFileSync(__dirname + "\\config.json"));
  var host = config.host;
  var port = config.port;
  var express = require("express");
  
  var app = express.createServer();
  
  app.get(__dirname + "\\",function(request, response){
      response.send("Hello!");
  });
  
  app.listen(port,host);
  </code></pre>
  
  <p>And I'm having this error and I'm not able to solve it:  </p>
  
  <pre><code>C:\Users\Fabio\Documents\GitHub\NodeJSProjects\ExpressSimpleServer\Server.js:7
  var app = express.createServer();
                    ^
  TypeError: Object function createApplication() {
  var app = function(req, res, next) {
      app.handle(req, res, next);
  }; 
  
  mixin(app, proto);
  mixin(app, EventEmitter.prototype);
  
  app.request = { __proto__: req, app: app };
  app.response = { __proto__: res, app: app };
  app.init();
  return app;
  } has no method 'createServer'
  at Object.&lt;anonymous&gt; (C:\Users\Fabio\Documents\GitHub\NodeJSProjects\ExpressSimpleServer\Server.js:7:19)
  at Module._compile (module.js:456:26)
  at Object.Module._extensions..js (module.js:474:10)
  at Module.load (module.js:356:32)
  at Function.Module._load (module.js:312:12)
  at Function.Module.runMain (module.js:497:10)
  at startup (node.js:119:16)
  at node.js:902:3
  </code></pre>
  
  <p>I'm using node.js 0.10.26, express 4.0.0 and windows 8</p>