title: How to use multiple nested private node modules?
body: <p>The following is my project structure</p>
  
  <pre><code>Base Application
    |
    |----Node Module 1 
    |       |
    |       |----Node Module 2
    |
    |----Node Module 2
  </code></pre>
  
  <p>All these are private repositories. I added the following in the base application's <code>package.json</code></p>
  
  <pre><code>{
  name: "Base Application",
    dependencies: {
    ..
    node-module1: "git+https://github.com/abc/node-module1.git",
    node-module2: "git+https://github.com/abc/node-module2.git",
    ..
    }
  }
  </code></pre>
  
  <p>I cloned my repository using <code>HTTPS</code> version (<a href="https://github.com/abc/base-application.git" rel="nofollow noreferrer">https://github.com/abc/base-application.git</a>) which prompts me for username and password. Once cloned, when I tried to do a <code>npm install</code>, I was getting the following error</p>
  
  <pre><code>npm ERR! Cloning into bare repository '/home/ubuntu/.npm/_git-remotes/git-https-github-com-abc-node-module1-git-3bd17fdf3s45ae0sdfadf68sdegk72e3'...
  npm ERR! remote: Invalid username or password.
  npm ERR! fatal: Authentication failed for 'https://github.com/abc/node-module1.git/'
  </code></pre>
  
  <p>After some digging, I modified my <code>package.json</code> to include version as suggested <a href="https://stackoverflow.com/a/7807279/826610">here</a>.</p>
  
  <pre><code>{
  name: "Base Application",
    dependencies: {
    ..
    node-module1: "git+https://github.com/abc/node-module1.git#v0.0.1",
    node-module2: "git+https://github.com/abc/node-module2.git#v0.0.1",
    ..
    }
  }
  </code></pre>
  
  <p>This works. But the problem is I am been prompted for the username and password <strong>multiple times</strong>. This will also create the complexity of creating a version in the node-modules every time a minute change is made. </p>
  
  <p>So how can I use private node modules as how we use public ones.  </p>