title: Connect Redis using node JS in Linux
body: <p>I am trying to connect to redis in linux using node js as below</p>
  
  <p><code>var redis = require('redis');</code></p>
  
  <p>But, getting the error as below. 
  I have redis-2.4.17 installed in linux and the path is /home/masadmin/redis-2.4.17/src
  Kindly help on how to connect to redis using node in linux.</p>
  
  <pre><code>module.js:340
      throw err;
  
            ^
  Error: Cannot find module 'redis'
      at Function.Module._resolveFilename (module.js:338:15)
      at Function.Module._load (module.js:280:25)
      at Module.require (module.js:362:17)
      at require (module.js:378:17)
      at Object.&lt;anonymous&gt; (/home/masadmin/Vinod/prapprRedisLoad.js:2:13)
      at Module._compile (module.js:449:26)
      at Object.Module._extensions..js (module.js:467:10)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
      at Module.runMain (module.js:492:10)
  </code></pre>