One problem is that resolving a module at runtime (eg, `require()`) will
require matching versions with what's on the file system vs what's in
package.json.  That happens at `npm install` time today, not at require().
 Unless you're talking about adding more metadata.  NOT MORE METADATA!!!

It would be great to see flattened trees like this, as a report - in fact
I've seen tools do this today. Would like to see more!



On Thu, May 29, 2014 at 9:20 AM, Aria Stewart <[email protected]> wrote:

>
> On May 28, 02014, at 18:38, Leza Morais Lutonda <
> [email protected]> wrote:
>
> > On 28/05/14 10:23, Aria Stewart wrote:
> >> No. But npm dedup might get you close. It's only theoretically possible
> if your dependencies are transitively compatible -- which is not something
> many people put effort into, since it's not required except to move
> dependencies to the root. What are you actually trying to accomplish? Aria
> >
> > Thanks for the answer.
> >
> > I try `npm depupe`, but not very happy because the dependencies packages
> have different versions of common dependencies.
> >
> > I ever wished a npm structure like this:
> >
> > node_modules/
> >   | package1/
> >   |   | version1/
> >   |   | version2/
> >   |   | ....
> >   |   | versionN
> >   | package2/
> >   |   | version1/
> >   |   | version2/
> >   |   | ....
> >   |   | versionN
> >   ....
> >
> > And maybe node resolve the path for `require` on starting the
> application reading de package.json.
> >
> > Anybody else wished this?
>
> Sometimes, but what does this get you?
>
> What are the trade-offs?
>
> What are you actually trying to accomplish?
>



-- 
Patrick Mueller
http://muellerware.org

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/CACAoQH14%2BvskFMYtDSM-n40GCpDq5b4E_bc%3D3%3DL4mw_Vy9FQyQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to