fixed in 2.11.1 by @isaacs' pull request. On Sep 3, 2012, at September 3, 20121:23 AM, chakrit <[email protected]> wrote:
> Cross posted from node.js group since I didn't know there's a separate group > for npm: > Original: > https://groups.google.com/forum/?fromgroups=#!topic/nodejs/MgKl4Y-NOo0 > > ---- > > See this issue here: https://github.com/mikeal/request/issues/313 > > In short: `npm install [email protected]` does not install the module properly > and thus cause any depended module not install properly as well > > I'm using resourceful and cradle in particular. This is possibly because of > the use of bundleDependencies in version 2.11.0. > > OS X ML > node -v 0.8.8 > npm -v 1.1.59 > > A couple questions: > Is this how bundle dependencies supposed to work? It seems to me like it > isn't. > Is there any way to fix this situation quickly? Right now I have to go into > the node_modules tree and redo `npm install` for each broken module in the > dependency branch up to [email protected] module itself. > Sample from `npm ls`: > > ├─┬ [email protected] > │ ├── [email protected] > │ ├─┬ [email protected] > │ │ ├─┬ [email protected] > │ │ │ └── [email protected] > │ │ ├─┬ [email protected] > │ │ │ ├─┬ [email protected] extraneous > │ │ │ │ ├── [email protected] > │ │ │ │ └─┬ [email protected] > │ │ │ │ └── [email protected] > │ │ │ └── [email protected] invalid extraneous > > `npm prune` does not work as dependencies are left missing after `npm > install`, not just extraneous. Going into the node_modules folder and `npm > ls` some modules produce an incomplete list of packages (UNMET DEPENDENCY) > for some packages that depends on [email protected]. > > For example, here is `npm ls` output inside `node_modules/resourceful` after > install: > > [email protected]/..snip../node_modules/resourceful > ├── UNMET DEPENDENCY async 0.1.x > ├─┬ [email protected] > │ ├─┬ [email protected] > │ │ └── [email protected] > │ ├─┬ [email protected] > │ │ ├─┬ [email protected] extraneous > │ │ │ ├── [email protected] > │ │ │ └─┬ [email protected] > │ │ │ └── [email protected] > │ │ └── [email protected] invalid extraneous > │ └── [email protected] > ├── UNMET DEPENDENCY i 0.3.x > ├── UNMET DEPENDENCY node-uuid 1.3.x > └── [email protected] > > So right now I have to manually goes into the folder of each module tree that > contains [email protected] and make sure all the dependencies are setup, which > is super annoying. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
