title: cannot find module socket.io
body: <p>I'm pretty new to nodejs and socket.io. At the time I don't know anything about nodejs. I met a horrible error.</p>
  
  <p>My whole steps to install nodejs (on Windows 7):</p>
  
  <pre><code>- Access nodejs.org and click to their green download button.
  - Install nodejs in F:/nodejs
  - Install socket.io with command npm install socket.io
  - Install node supervisor with command npm install supervisor -g
  </code></pre>
  
  <p>That's all. Then I try to use socket.io with this line:</p>
  
  <pre><code>var io = require('socket.io').listen(app);
  </code></pre>
  
  <p>And it output an error:</p>
  
  <pre><code>Error: Cannot find module 'socket.io'
      at Function.Module._resolveFilename (module.js:338:15)
      at Function.Module._load (module.js:280:25)
      at Module.require (module.js:364:17)
      at require (module.js:380:17)
      at Object.&lt;anonymous&gt; (F:\nodejs\chat.js:8:10)
      at Module._compile (module.js:456:26)
      at Object.Module._extensions..js (module.js:474:10)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
      at Function.Module.runMain (module.js:497:10)
  </code></pre>
  
  <p>I've tried all suggested method like cleaning cache, reinstalling nodejs or changing socket.io module path. Unfortunately, all of those solutions didn't solve this problem.</p>
  
  <p>This terrible error killed my whole day. I greatly appreciate any help.</p>