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: [email protected] [mailto:[email protected]] On Behalf
Of Tim Smart
Sent: Wednesday, March 06, 2013 12:39 AM
To: [email protected]
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 [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.
> 
> 

--
--
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.


-- 
-- 
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.


Reply via email to