title: ReferenceError: Can't find variable: require node.js
body: <p>I have tried the related solutions for this problem (eg. add the dependencies through 'package.json' and run npm install) but unfortunately they didn't solve it. Problem is when I run the code from the accepted answer from the following discussion: 
  <a href="https://stackoverflow.com/questions/23784614/node-js-ajax-sending-and-receiving-json/44965943?noredirect=1#comment76906741_44965943">Node.js, Ajax sending and receiving Json</a></p>
  
  <p>everything works fine. the Ajax-call works and I get the result with the data. But in the console I get the error. </p>
  
  <pre><code>'ReferenceError: Can't find variable: require' (Globale code — requesthandle.js:2ReferenceError: Can't find variable: require) 
  </code></pre>
  
  <p>Any ideas which could be the problem here? Thank you! </p>
  
  <p>This is the code I am using:</p>
  
  <p>requesthandle.js (server side, by executing node requesthandle.js) ==></p>
  
  <p><a href="http://i67.tinypic.com/24zbyma.png" rel="nofollow noreferrer">http://i67.tinypic.com/24zbyma.png</a></p>
  
  <p>and</p>
  
  <p>list.html (by visiting mydomain/list.html)</p>
  
  <p><a href="http://i65.tinypic.com/mwp3md.png" rel="nofollow noreferrer">http://i65.tinypic.com/mwp3md.png</a></p>