title: browserify - uncaught error "cannot find module" in bundle.js
body: <p>Getting the following:</p>
  
  <pre><code>Uncaught Error: Cannot find module 'C:\Users\SR71042\AppData\Roaming\npm\node_modules\browserify\node_modules\insert-module-globals\node_modules\process\browser.js' 
  </code></pre>
  
  <p>Anyone has an idea? The module is indeed there.</p>
  
  <p>EDIT:</p>
  
  <p>It only happens if I require a jison parser. <a href="http://zaach.github.io/jison/try/" rel="nofollow">http://zaach.github.io/jison/try/</a>, using:</p>
  
  <pre><code>parser = require('./calculator').parser
  </code></pre>
  
  <p>This is how jison does the export part:</p>
  
  <pre><code>if (typeof require !== 'undefined' &amp;&amp; typeof exports !== 'undefined') {
      exports.parser = parser;
      exports.Parser = parser.Parser;
      exports.parse = function () {
          return parser.parse.apply(parser, arguments);
      };
      exports.main = function commonjsMain(args){
          if(!args[1]){
              console.log("Usage: "+args[0]+" FILE");
              process.exit(1)
          }
          var source=require("fs").readFileSync(require("path").normalize(args[1]),"utf8");
          return exports.parser.parse(source)
      };
      if (typeof module !== 'undefined' &amp;&amp; require.main === module) {
          exports.main(process.argv.slice(1));
      }
  }
  </code></pre>