title: uglify-js in nodeJS "Cannot find module"
body: <p>Here i am creating application to compress a javascript file</p>
  
  <p>Steps i made,</p>
  
  <ol>
  <li>Installed nodeJS in my local machine</li>
  <li>checked node and npm is working</li>
  <li>Installed "uglify-js" by "npm install uglify-js -g" and installed</li>
  <li>When i try to run by "node server.js" in command prompt throwing
  error</li>
  </ol>
  
  <p><strong>Error</strong> :
  <strong>Cannot find module 'uglify-js'</strong></p>
  
  <p>Server.js</p>
  
  <pre><code>var UglifyJS = require('uglify-js');
  var fs = require('fs');
  
  var result = UglifyJS.minify('site.js', {
      mangle: true,
      compress: {
          sequences: true,
          dead_code: true,
          conditionals: true,
          booleans: true,
          unused: true,
          if_return: true,
          join_vars: true,
          drop_console: true
      }
  });
  
  fs.writeFileSync('site.min.js', result.code);
  </code></pre>
  
  <p>Installed 'uglify-js modules' in</p>
  
  <pre><code>C:\Users\carunraj\AppData\Roaming\npm\node_modules\uglify-js
  </code></pre>
  
  <p>Server.js in</p>
  
  <pre><code>C:\Program Files\nodejs
  </code></pre>
  
  <p>Can any one help?</p>