title: Installing PhantomJS on Mac
body: <p>I'm trying to install PhantomJS on my Mac (Yosemite). </p>
  
  <p>I did the following:</p>
  
  <pre><code>npm install phantomjs
  </code></pre>
  
  <p>Then I did: </p>
  
  <pre><code>npm install phantomjs-prebuilt
  </code></pre>
  
  <p>Both of which appear in my node_modules. But when I try to run <code>phantomjs --version</code>I get </p>
  
  <pre><code>   -bash: phantomjs: command not found
  </code></pre>
  
  <p>Also tried installing the binary from the downloads website, but nothing. What am I missing? End goal is to use casperjs but currently casper is asking </p>
  
  <pre><code>Fatal: [Errno 2] No such file or directory; did you install phantomjs?
  </code></pre>
  
  <p>I thought I did....? </p>