title: Cannot find module 'casper' with 1.1 beta
body: <p>This command was working:</p>
  
  <pre><code>/usr/local/Cellar/casperjs/1.0.2/libexec/bin/casperjs myfile.coffee
  </code></pre>
  
  <p>Now I want to use 1.1 like so:</p>
  
  <pre><code>/usr/local/Cellar/casperjs/1.1-beta3/libexec/bin/casperjs myfile.coffee
  </code></pre>
  
  <p>But now I get this error:</p>
  
  <pre><code>Error: Cannot find module 'casper'
  
    phantomjs://bootstrap.js:289
    phantomjs://bootstrap.js:254 in require
  </code></pre>
  
  <p>People reporting this error are trying to invoke casper by running phantomjs, but as you see I am running casperjs directly. What gives?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>In case it provides a clue, when I call <code>require = patchRequire(require)</code> on the first line of my script, I get this error:</p>
  
  <pre><code>TypeError: 'undefined' is not an object (evaluating 'require.patched')
  
    /usr/local/Cellar/casperjs/1.1-beta3/libexec/bin/bootstrap.js:197 in patchRequire
  </code></pre>