title: Socket.io.js not found on Ubuntu but is on Windows
body: <p>I've been pulling out my hair trying to figure this problem out. I have a node.js app that works fine in windows. I zipped everything up and put it on my linux box (Ubuntu 12) and installed all of the libraries through npm, and yet I still get a 404 message saying my socket.io.js file cannot be found. I've tried various solutions such as linked to the cdn.socket.io script but that just throws a "require not found" error. My code in my html is as follows:</p>
  
  <pre><code>&lt;script src="/socket.io/socket.io.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I've even tried <code>&lt;script src="localhost:4000/socket.io/socket.io.js"&gt;&lt;/script&gt;</code></p>
  
  <p>and here is my server side:</p>
  
  <pre><code>var express = require('express');
  var app = express.createServer();
  var io = require('socket.io').listen(app);
  ...
  app.listen(4000);
  console.log('server started');
  </code></pre>
  
  <p>This question is similar, however the answer for it is simply is an updated express semantic which shouldn't apply to my code: <a href="https://stackoverflow.com/questions/10191048/socket-io-js-not-found">socket.io.js not found</a></p>
  
  <p>If my understanding is correct, the script path should work because when socket.io is running, it should direct that request to the right route. I don't really know what else I should look into for a fix, could it be something with the path in Ubuntu?
  Any help would be very much appreciated!</p>
  
  <p>Just tested this:</p>
  
  <pre><code>var io = require('socket.io').listen(8000);
  </code></pre>
  
  <p>Went to localhost:8000 and the 'welcome to socket.io' message showed up so I know it is running....</p>
  
  <p><strong>paths</strong><br>
  node_modules: <code>/home/alex/node_modules/socket.io</code><br>
  my node app: <code>/home/alex/documents/project/app.js</code></p>