title: Composer install cant find composer.json
body: <p>I am trying to just install composer, I am on mac osx. I have done it before using the terminal lines from their site and it worked just fine. I got a clean install on my mac now, and it won't install properly.</p>
  
  <p>I tried to:</p>
  
  <pre><code>cd ~
  curl -sS https://getcomposer.org/installer | php
  </code></pre>
  
  <p>and and:</p>
  
  <pre><code>cd /Applciations/MAMP/htdocs
  curl -sS https://getcomposer.org/installer | php
  </code></pre>
  
  <p>and neither works. (I saw a post saying I should <code>cd</code> to a directory before trying to install it. But no matter what, I keep hitting this error:</p>
  
  <pre><code>Composer could not find a composer.json file in /Applications/MAMP/htdocs
  To initialize a project, please create a composer.json file as described in the http://getcomposer.org/ "Getting Started" section
  </code></pre>
  
  <p>when trying to install composer.</p>