nathanbowser/module-layout-npm-2 — pull request #1 by faiq (2014-11-20 20:09:53+00:00)
Title: add local dependencies with all different request versions- works fine

okay this is me with a brain dump of playing around with local `npm` modules that all have the same same dependency, `request`.

##So here's the structure that I am using

root folder
└── package.json (dependencies: request 2.44.0, local_modules/dep2, local_modules/dep3, local_modules/br-team-stream)
└── index.js
└── local_modules
└── br-team-stream ---- index.js, package.json (dependencies: "cheerio": "^0.18.0", "dep2": "file:../dep2", "request": "1.0.0")
└── dep2 - package.json (dependencies: "file:../br-team-stream", request: 2.0.0)
└── dep3 - package.json (dependencies: "request": "0.10.0")

##Now when we run the install it looks something like this:

dep3@1.0.0 node_modules/dep3
└── request@0.10.0

dep2@1.0.0 node_modules/dep2
└── request@2.0.0

request@2.44.0 node_modules/request
├── caseless@0.6.0
├── json-stringify-safe@5.0.0
├── forever-agent@0.5.2
├── aws-sign2@0.5.0
├── oauth-sign@0.4.0
├── stringstream@0.0.4
├── tunnel-agent@0.4.0
├── node-uuid@1.4.1
├── qs@1.2.2
├── mime-types@1.0.2
├── tough-cookie@0.12.1 (punycode@1.3.2)
├── bl@0.9.3 (readable-stream@1.0.33)
├── form-data@0.1.4 (mime@1.2.11, async@0.9.0, combined-stream@0.0.7)
├── hawk@1.1.1 (cryptiles@0.2.2, sntp@0.2.4, boom@0.4.2, hoek@0.9.1)
└── http-signature@0.10.0 (assert-plus@0.1.2, asn1@0.1.11, ctype@0.5.2)

br-team-stream@1.0.1 node_modules/br-team-stream
├── request@1.0.0
└── cheerio@0.18.0 (dom-serializer@0.0.1, entities@1.1.1, lodash@2.4.1, CSSselect@0.4.1, htmlparser2@3.8.2)