title: TypeError: express is not a function
body: <p>Hi I'm trying to use <code>jade</code> and <code>express</code> together. But it is giving me <code>TypeError</code>.
  I made <code>npm init</code>, <code>npm install express -save</code> and then <code>node app.js</code>. But it is giving me same error <code>"TypeError: express is not a function"</code></p>
  
  <pre><code>// Module dependencies
  var express = require('express')
    , nib = require('nib')
    , mysql = require('mysql')
  
   var app = express();
  
  var app = module.exports = app.createServer();
  
  
  app.set('views', __dirname + '/views')
  app.set('view engine', 'jade')
  app.use(express.logger('dev'))
  </code></pre>
  
  <p>And <code>package.json</code> : </p>
  
  <pre><code>{
    "name": "reddit-node-mysql",
    "description": "A demo of how to use Express and MySQL together",
    "author": "Clarence Leung &lt;github@clarle&gt;",
    "version": "0.0.1",
    "private": true,
    "dependencies": {
      "express": "^2.5.11",
      "mysql": "~2.0",
      "nib": "^1.1.2",
      "jade": "^1.0.4"
    },
    "main": "app.js",
    "scripts": {
      "test": "echo \"Error: no test specified\" &amp;&amp; exit 1"
    },
    "license": "ISC",
    "devDependencies": {}
  }
  </code></pre>
  
  <p><strong>Solution</strong>
  My modules' version outdated so they can't installed well. I updated version of them, now working.</p>