title: Node.js with ExpressJS error: Cannot read property 'prototype' of undefined
body: <p>Running node.js v0.10.2 and express v3.1.1 (latest at this time) and getting this error:</p>
  
  <pre><code>/root/dmr-addresses/node_modules/jquery/lib/node-jquery.js:10
  window.XMLHttpRequest.prototype.withCredentials = false;
                       ^
  TypeError: Cannot read property 'prototype' of undefined
    at create (/root/dmr-addresses/node_modules/jquery/lib/node-jquery.js:10:26)
    at /root/dmr-addresses/node_modules/jquery/lib/node-jquery.js:9503:18
    at Object.&lt;anonymous&gt; (/root/dmr-addresses/node_modules/jquery/lib/node-jquery.js:9505:2)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.&lt;anonymous&gt; (/root/dmr-addresses/address/log.js:1:71)
  </code></pre>
  
  <p>line 1 of log.js is:</p>
  
  <pre><code>var $ = require('jquery');
  </code></pre>
  
  <p>I've tried running <code>npm install jquery</code> but it has not fixed the problem. </p>