laktek / punch

A fun and easy way to build modern websites
http://laktek.github.com/punch
MIT License
1.17k stars 107 forks source link

Cannot start server Connect has no method 'logger' #113

Closed jokecamp closed 8 years ago

jokecamp commented 10 years ago

After installing punch globally with npm I setup a new site. Then I changed to that directory then tried to run the new site and received the following error:

Punch version 0.5.44

$ punch s

/usr/local/lib/node_modules/punch/lib/server.js:19
        app.use( Connect.logger("short") );
                         ^
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.module.exports.startServer (/usr/local/lib/node_modules/punch/lib/server.js:19:20)
    at /usr/local/lib/node_modules/punch/lib/cli.js:66:21
    at /usr/local/lib/node_modules/punch/lib/config_handler.js:115:13
    at /usr/local/lib/node_modules/punch/lib/config_handler.js:42:11
    at fs.js:266:14
    at Object.oncomplete (fs.js:107:15)
laktek commented 10 years ago

Please try installing Punch 0.5.45. I fixed it to use the correct version of Connect.