title: Why doesn't node.js load the module I require?
body: <p>I have node.js install on linux, and <code>file.js</code>. In the same directory I have <code>node_modules</code> directory with <code>lru-cache</code> module. </p>
  
  <p><code>file.js</code> does the following:</p>
  
  <pre><code>var lrucache = require('lru-cache')
  </code></pre>
  
  <p>But when I run it, it raises the following error:</p>
  
  <pre><code>Error: Cannot find module 'lru-cache'
      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; (/opt/file.js:58:12)
      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>What is the problem? the same is working in other linux system.</p>