How would I make them dependency of main application? Each app module is not on npm registry, they are local on the directory. mainapp package.json modA package.json modB package.json
Also modA can depend on ModB. So need to some how reference them. On Wednesday, March 6, 2013 9:01:00 AM UTC-5, Chad Engler wrote: > > Make each a dependency of the main application, so doing npm install in > the main application will install all the other apps into node_modules, > you can then require them into your main app. > > -Chad > > > -----Original Message----- > From: nod...@googlegroups.com <javascript:> [mailto: > nod...@googlegroups.com <javascript:>] On Behalf > Of Tim Smart > Sent: Wednesday, March 06, 2013 12:39 AM > To: nod...@googlegroups.com <javascript:> > Subject: Re: [nodejs] NPM Packages > > What happens if two apps requires different versions of the same > dependency? > Install the dependency locally for that specific app? > > Tim > > On Tue, Mar 05, 2013 at 09:36:11AM -0800, Sergey Shteyn wrote: > > Hi, > > > > I was wondering if anybody can help me with a project. I have a large > > project with different apps in different directories. Each app it's > > own package.son file. I would like to install the packages for all the > > > apps into a root directory of my project with npm install. Is this > > possible and good practice? > > > > Thanks, > > > > Sergey > > > > -- > > -- > > 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 nod...@googlegroups.com<javascript:>To > > unsubscribe from this group, send email to > > nodejs+un...@googlegroups.com <javascript:> > > 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 nodejs+un...@googlegroups.com <javascript:>. > > 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 nod...@googlegroups.com <javascript:>To > unsubscribe from this group, send email to > nodejs+un...@googlegroups.com <javascript:> > 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 nodejs+un...@googlegroups.com <javascript:>. > 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 nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com 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 nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.