title: Node.js require() returns undefined always?
body: <p>I am trying to use Node.js with Amazon AWS and when I try to declare an aws instance I keep getting returned undefined. Also when I try to require a common module such as http, terminal also returns undefined.
  This occurs when I try to execute my actual script.</p>
  
  <p>Terminal Snippet:</p>
  
  <pre><code>User$ node
  
  &gt; var aws=require('aws-sdk')
      undefined
  
  &gt; var web =require('http')
  undefined
  </code></pre>