title: Socket.IO - require is not defined
body: <p>I'm trying to get socket.io working but now in Chrome I get the error:</p>
  
  <p><strong>Uncaught ReferenceError: require is not defined</strong></p>
  
  <p><strong>client.php:9Uncaught ReferenceError: io is not defined</strong></p>
  
  <p>I changed the way to include the socket.io.js file because it dosnt exists somewher else:</p>
  
  <pre><code>&lt;script src="/node_modules/socket.io/lib/socket.io.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>If I try </p>
  
  <pre><code>&lt;script src="/socket.io/socket.io.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I get: <strong>Failed to load resource: the server responded with a status of 404 (Not Found)</strong></p>
  
  <p>This is on Ubuntu with the latest of everything</p>
  
  <p>I'm using the server code from <a href="http://socket.io/" rel="noreferrer">http://socket.io/</a> to work with in the same folder like client.php and that works, named server.js, only modified port.</p>