Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion multiple mkdirp package installed?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Isaac Schlueter  
View profile  
 More options Oct 10 2011, 12:48 pm
From: Isaac Schlueter <i...@izs.me>
Date: Mon, 10 Oct 2011 09:48:17 -0700
Local: Mon, Oct 10 2011 12:48 pm
Subject: Re: [npm] multiple mkdirp package installed?
Yes, it will always install a second copy if necessary to resolve a
stated dependency.

In the pasted `npm ls`, there are three copies of mkd...@0.0.7
installed underneath siblings.  By installing it in the parent,
they'll all share.

On Mon, Oct 10, 2011 at 09:45, Mikeal Rogers <mikeal.rog...@gmail.com> wrote:

> On Oct 10, 2011, at October 10, 20115:30 PM, Isaac Schlueter wrote:

>> Yes, this is normal.

>> You can avoid this situation if you want by installing mkdirp at the
>> top level first, as a dependency of your program, and then install the
>> other packages.

> If you do this and a dependency needs a different version it'll still be installed right?

>> What's the weird result you got?

>> On Mon, Oct 10, 2011 at 09:13, Dean Landolt <d...@deanlandolt.com> wrote:

>>> On Mon, Oct 10, 2011 at 10:14 AM, rogerz <rogerz.zh...@gmail.com> wrote:

>>>> mkdirp is required by lots of packages. Is it normal to have multiple
>>>> copy of it under each module?

>>>> ├─┬ expr...@2.4.7
>>>> │ ├── conn...@1.7.1
>>>> │ ├── m...@1.2.4
>>>> │ ├── mkd...@0.0.7
>>>> │ └── q...@0.3.1
>>>> ├─┬ j...@0.16.2
>>>> │ ├── comman...@0.1.0
>>>> │ └── mkd...@0.0.7
>>>> ├─┬ mongo...@2.3.0
>>>> │ ├── col...@0.5.0
>>>> │ ├── ho...@0.1.9
>>>> │ └── mong...@0.9.6-20
>>>> └─┬ sty...@0.17.0
>>>>  ├── cs...@0.2.0
>>>>  ├── gr...@1.1.0
>>>>  └── mkd...@0.0.7

>>>> I've tried to install mkdirp manually before other packages but get a
>>>> more weird result. What do people usually do with this issue? Leaving
>>>> the packages repeated? This is not cool.

>>> Is it really that bad? How much space is each instance of mkdirp eating up?
>>> I could see it being a problem on embedded devices, but that's about it.
>>> Regardless, to fix all you have to do is use symlinks to point all copies of
>>> mkdirp to one global location. This is pretty easy to do by hand, but should
>>> be pretty easy to script too. Obviously the best thing would be if this
>>> could be done without burdening npm with added complexity. And this really
>>> wouldn't be all that different than an `npm link` so it should play nice
>>> with npm's design (although windows has an f'ed up flaw in its symlinks
>>> where rimrafing follows links and wipes out their targets).
>>> I could imagine npm growing a local registry allowing you to map
>>> package@versions to canonical fs locations but as Isaac noted when he
>>> originally addressed this tradeoff in the design: is it really that bad to
>>> duplicate these packages? Really?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.