title: Git credentials when npm has a git dependency
body: <p>I have a Jenkins job to build my JS application.</p>
  
  <p>In my <code>package.json</code> I have a dependency that looks like this:</p>
  
  <pre><code>"devDependencies": {
    "my_private_package": "git+https://my-server/my-repo.git#1.0.0"
  }
  </code></pre>
  
  <p>I use the <a href="https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin" rel="noreferrer" title="Jenkins Git Plugin">Jenkins Git Plugin</a> along with the <a href="https://wiki.jenkins-ci.org/display/JENKINS/Credentials+Plugin" rel="noreferrer">Credentials Plugin</a> to clone the repo, then a shell script to run <code>npm install</code>.</p>
  
  <p>When Jenkins runs <code>npm install</code>, <code>npm</code> errors out with <code>npm ERR! fatal: Authentication failed</code></p>
  
  <p>Due to our self hosted git server and bureaucracy I'm unable to do anything with adding an oAuth token to the git url.</p>
  
  <p>Is there a way for me to set my git credentials so that npm can install from my password protected git repo?</p>