title: How to fix curl: (60) SSL certificate: Invalid certificate chain
body: <p>I get the following error running <code>curl https://npmjs.org/install.sh | sh</code> on Mac OSX 10.9 (Mavericks):</p>
  
  <pre><code>install npm@latest
  curl: (60) SSL certificate problem: Invalid certificate chain
  More details here: http://curl.haxx.se/docs/sslcerts.html
  </code></pre>
  
  <p>How do I fix this?</p>