title: Why is it necessary to install Browserify twice to bundle
body: <p>I created a new project</p>
  
  <p>I <code>npm install -g browserify</code></p>
  
  <p>I tested using the cmdline, <code>browserify app.js &gt; bundle.js</code>. Cool.</p>
  
  <p>I want to minify so I <code>npm install uglifyify --save-dev</code></p>
  
  <p>I tested using the cmdline, <code>browserify -g uglifyify app.js &gt; bundle.js</code>. Great.</p>
  
  <p>Now I want to do this with code, but I get <code>Error: Cannot find module 'browserify'</code></p>
  
  <p>This is my code, basically to replace the cmdline</p>
  
  <pre><code>var browserify = require('browserify')
  var fs = require('fs')
  
  var bundler = browserify('./app.js')
  
  bundler.transform({
      global: true
  }, 'uglifyify')
  
  bundler.bundle()
      .pipe(fs.createWriteStream('./bundle.js'))
  </code></pre>
  
  <p>It seems I would need to again install browserify locally to this project?</p>