title: NPM install resulting in 401 Unauthorized for private repo
body: <p>I have the following line in my dependencies in <code>package.json</code>:</p>
  
  <pre><code>"log": "https://git.mydomain.com/myproject/myrepo/repository/archive.tar.gz?ref=0.1.0",
  </code></pre>
  
  <p>I get the following:</p>
  
  <pre><code>km@Karls-MBP ~/dev/vertica (km/ref) $ npm install
  npm ERR! code E401
  npm ERR! 404 401 Unauthorized: log@https://git.mydomain.com/myproject/myrepo/repository/archive.tar.gz?ref=0.5.0
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /Users/km/.npm/_logs/2018-02-16T08_49_38_669Y-debug.log
  </code></pre>
  
  <p>I don't know if the issue is GitLab (where the repo exists) or NPM.</p>
  
  <ul>
  <li>Node v8.9.4</li>
  <li>NPM v5.6.0</li>
  </ul>