title: NPM Dependency - Folder within a Git Repo?
body: <p>Does NPM support installing dependencies via a Git URL to a sub-folder within the repo? I checked the documentation and it didn't look like there was a way, but I couldn't explicitly tell.</p>
  
  <p>I know it does and I know how to setup a Git repo itself to serve as a dependency, something like this:</p>
  
  <ul>
  <li>(other files)</li>
  <li>package.json</li>
  </ul>
  
  <p>But what I would like to do is basically use a monorepo pattern (like Babel), so I'd have a folder structure similar to this:</p>
  
  <ul>
  <li>packages/
  
  <ul>
  <li>packageA/
  
  <ul>
  <li>package.json</li>
  </ul></li>
  <li>packageB/
  
  <ul>
  <li>package.json</li>
  </ul></li>
  <li>packageC/
  
  <ul>
  <li>package.json</li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>And then be able to install them all from the same repo just referring to <code>packageA</code>, <code>packageB</code> and <code>packageC</code>.</p>
  
  <p>I know an alternative would be to have them all be part of one module, and then import them like <code>package/packageA</code>, but some of them aren't super related conceptually so that is less than ideal. The only reason they are in the same repo because I don't want NPM module repos clustering up our repository.</p>
  
  <p>I know this is normally done with a private NPM repository, but we currently don't have access to one, so hoping there is an alternative.</p>
  
  <p>Any ideas?</p>