Advertisement
Guest User

cookieParser Error

a guest
Mar 29th, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. > node app.js
  2.  
  3.  
  4. /home/neo/node_modules/flatiron-passport/flatiron-passport.js:18
  5.      app.http.before.push(connect.cookieParser());
  6.                                   ^
  7. TypeError: Object function createServer() {
  8.   function app(req, res, next){ app.handle(req, res, next); }
  9.   merge(app, proto);
  10.   merge(app, EventEmitter.prototype);
  11.   app.route = '/';
  12.   app.stack = [];
  13.   return app;
  14. } has no method 'cookieParser'
  15.     at exports.attach (/home/neo/node_modules/flatiron-passport/flatiron-passport.js:18:35)
  16.     at App.use (/home/neo/node_modules/flatiron/node_modules/broadway/lib/broadway/app.js:165:31)
  17.     at Object.<anonymous> (/home/neo/Desktop/projects/projects/projects/stickr/app.js:43:5)
  18.     at Module._compile (module.js:456:26)
  19.     at Object.Module._extensions..js (module.js:474:10)
  20.     at Module.load (module.js:356:32)
  21.     at Function.Module._load (module.js:312:12)
  22.     at Function.Module.runMain (module.js:497:10)
  23.     at startup (node.js:119:16)
  24.     at node.js:935:3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement