Thanx Marco and greelgorke. Looks like true. But the problem is that module
B dont have access to C and throws error (module not found) if it is loaded
in* A/node_modules* and not in *A/node_modules/B/node_modules.* Allthough
it's required as usual inside B: *require('C').* I found temporal solution:
comment* C dependency* in *A*, then *npm intall* in *A *and then uncomment
it and *npm install* again. *C* version is the same in *A* and *B*.
On Fri, Jul 12, 2013 at 11:49 AM, greelgorke <[email protected]> wrote:
> the way how node module loader resolves modules allows it to place C only
> once in the hierarchy of dependencies. B still has access to C.
> http://nodejs.org/api/modules.html#modules_all_together describes, how
> the resolver works.
>
> Am Freitag, 12. Juli 2013 04:53:10 UTC+2 schrieb Maxim Yefremov:
>
>> I got module *A* that depending on module *B* by git dependency and
>> module *B* depending on module *C*. At the same time module *A* depends
>> on module *C* by git dependency. When I do *npm install *for *A* it
>> install *B* and *C* in *node_modules *but in *
>> A/node_modules/B/node_modules* I do not see C folder as expected. If I
>> remove dependency *C* from *A* it install *B* with dependency* C* well.
>> But I want *A* to depend on *C *too.
>
> --
> --
> 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
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "nodejs" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/nodejs/xgnN1z0cYjo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
С уважением,
Максим Ефремов
--
--
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
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.