title: Cannot node app.js because 'Cannot read property 'MemoryStore' of undefined'
body: <p>I'm using vagrant and virtualbox with precise32 for my setup. Installed Node.js v0.10 using:</p>
  
  <ol>
  <li>curl -sL <a href="https://deb.nodesource.com/setup_0.10" rel="nofollow">https://deb.nodesource.com/setup_0.10</a> | sudo bash -</li>
  <li>sudo apt-get install -y nodejs </li>
  </ol>
  
  <p>and i can't seem to sudo node the following:</p>
  
  <pre><code>var everyauth = require('everyauth');
  var nconf = require('nconf');
  var Recaptcha = require('recaptcha').Recaptcha;
  var crypto = require('crypto');
  var connect = require('connect');
  var cookie = require('cookie');
  var express = require('express');
  
  var models = require('./models/');
  var hash = require('./hash');
  var config = require('./config');
  
  /* load API keys */
  nconf.env().file({file: 'settings.json'});
  
  var session_store = new connect.session.MemoryStore();
  </code></pre>
  
  <p>I got the following error:</p>
  
  <pre><code>   TypeError: Cannot read property 'MemoryStore' of undefined
      at Object.&lt;anonymous&gt; (/vagrant/app/auth.js:16:40)
      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 Module.require (module.js:364:17)
      at require (module.js:380:17)
      at Object.&lt;anonymous&gt; (/vagrant/app/app.js:8:12)
      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:945:3
   at node.js:945:3
  </code></pre>
  
  <p>I have to say that 3 years ago when I made the project, I simply did 'sudo npm install' and the tried to run and everythin was fine. I am thinking there is a incompatibility issue between js and the newly installed npm.</p>