title: NodeJS Connect error - has no method 'logger'
body: <p>Fairly new to nodejs here. I have a nodejs webserver running that serves up data via ajax. I now need to extend the server to respond to various post requests. All I am trying to get running is the bodyParser middleware but on a different development pc.</p>
  
  <p>os: debian
  nodejs: v0.10.29</p>
  
  <p>have run "npm install connect" as normal user and root</p>
  
  <p>code</p>
  
  <pre><code>var http = require('http');
  var connect = require('connect');
  
  var app = connect()
    .use(connect.logger('dev'))
    .use(connect.static('public'))
    .use(connect.bodyParser())
    .use(function(req, res){
      res.end(JSON.stringify(req.body));
    })
  
  http.createServer(app).listen(2081);
  </code></pre>
  
  <p>getting this output
      carl@crunchbang:~/nodedev$ node ./test.js</p>
  
  <pre><code>/home/carl/nodedev/test.js:5
    .use(connect.logger('dev'))
                 ^
  TypeError: Object function createServer() {
    function app(req, res, next){ app.handle(req, res, next); }
    merge(app, proto);
    merge(app, EventEmitter.prototype);
    app.route = '/';
    app.stack = [];
    return app;
  } has no method 'logger'
      at Object.&lt;anonymous&gt; (/home/carl/nodedev/test.js:5:16)
      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:906:3
  </code></pre>
  
  <p>I know im missing something really simple any help appreciated. </p>