title: Beginning jquery on node, how to fix this?
body: <p>For the following sample:</p>
  
  <pre><code>var $ = require('jquery');
  $.ajax({url : 'https://api.github.com/orgs/foo/members'})
      .then(function(members) {
          for (var i in members) {
              $.ajax({url : 'https://api.github.com/users/' + members[i].login})
                  .then(function(member) {
                      console.log(member.name)
                  });
          }
      });
  </code></pre>
  
  <p>I get this</p>
  
  <pre><code>$.ajax({url : 'https://api.github.com/orgs/foo/members'})
    ^
  TypeError: undefined is not a function
      at Object.&lt;anonymous&gt; (sample.js:2:3)
      at Module._compile (module.js:460:26)
      at Object.Module._extensions..js (module.js:478:10)
      at Module.load (module.js:355:32)
      at Function.Module._load (module.## Heading ##js:310:12)
      at Function.Module.runMain (module.js:501:10)
      at startup (node.js:129:16)
      at node.js:814:3
  </code></pre>
  
  <p>No idea how to fix. Any help?</p>
  
  <p><a href="https://stackoverflow.com/a/8916217/1000282">Notice that code in this answer is not helping me.</a> I get the same
  errors or stuff like <code>TypeError: Cannot set property 'cors' of undefined</code>.</p>
  
  <p>1 - I DON'T want advice for why I'm using jquery with node. I have a reason for this, I'm coding in Vim, want to easily test code that will be almost identical to what I'll put in the BROWSER. If you can provide a link for a tutorial for this kind of usage of node, I'd be glad (I've done this before in some remote time, both with node and Rhino).</p>