title: node.js modules path
body: <p>I realised that when I did a global installation of a node.js module (with the -g flag) node couldn't use that module unless I wrote the entire path.</p>
  
  <p>I mean, this doesn't work if the module has been globally installed:</p>
  
  <pre><code>cheerio = require('cheerio'),
  </code></pre>
  
  <p>I have to write that:</p>
  
  <pre><code>cheerio = require('/usr/lib/node_modules/cheerio'),
  </code></pre>
  
  <p>How can I say to node that it has to look for the modules in the right path?</p>
  
  <p>Thank you.</p>