title: Codeship Basic npm install fails Error: SSL Error: CERT_UNTRUSTED
body: <p>I'm having a consistent issue where my Codeship Basic setup step is failing when running <code>npm install</code>:</p>
  
  <pre><code>npm http GET https://registry.npmjs.org/babel-runtime
  npm ERR! Error: SSL Error: CERT_UNTRUSTED
  npm ERR!     at ClientRequest.&lt;anonymous&gt; (/home/rof/.nvm/v0.6.21/lib/node_modules/npm/node_modules/request/main.js:440:26)
  npm ERR!     at ClientRequest.g (events.js:156:14)
  npm ERR!     at ClientRequest.emit (events.js:67:17)
  npm ERR!     at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1256:7)
  npm ERR!     at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:91:29)
  npm ERR!     at CleartextStream.socketOnData [as ondata] (http.js:1288:20)
  npm ERR!     at CleartextStream._push (tls.js:375:27)
  npm ERR!     at SecurePair.cycle (tls.js:734:20)
  npm ERR!     at EncryptedStream.write (tls.js:130:13)
  npm ERR!     at Socket.ondata (stream.js:38:26)
  npm ERR!  [Error: SSL Error: CERT_UNTRUSTED]
  npm ERR! You may report this log at:
  npm ERR!     &lt;http://github.com/isaacs/npm/issues&gt;
  npm ERR! or email it to:
  npm ERR!     &lt;npm-@googlegroups.com&gt;
  
  npm ERR! System Linux 4.2.0-42-generic
  npm ERR! command "node" "/home/rof/.nvm/v0.6.21/bin/npm" "install"
  npm ERR! cwd /home/rof/src/
  npm ERR! node -v v0.6.21-pre
  npm ERR! npm -v 1.1.37
  npm ERR! message SSL Error: CERT_UNTRUSTED
  npm http GET https://registry.npmjs.org/axios
  </code></pre>
  
  <p>The same <code>npm install</code> / <code>package.json</code> works without issue on my local system.</p>
  
  <p>I'm trying to avoid just disabling SSL certificate verification as that doesn't seem like the right fix to the underlying problem.</p>
  
  <p>Anybody else seen this when using Codeship?</p>