title: How to resolve authentication error in npm install?
body: <p>In my package.json I have private repo called somerepo.git. Now I am running an npm install on a buildserver(bamboo) through maven and getting this error:</p>
  
  <pre><code>[ERROR] npm ERR! Command failed: git clone --template=/var/home/ci/.npm/_git-remotes/_templates --mirror https://somerepo.git
  [ERROR] npm ERR! fatal: Authentication failed for https://somerepo.git
  </code></pre>
  
  <p>How can I resolve the authentication for the repository?</p>