Hi Ole,
There is no such thing as "local repository".
If you're developing public modules, just publish them to npm registry, and run "npm update". If you're developing private modules, you might want to look at Sinopia server which provides a private npmjs registry. In any case, you will have to run "npm update" when you publish a module.
That said, it is possible to achieve something like that using symlinks. Just create a link from project2/node_modules/project1 pointing at project1. "npm link" does something similar.
// alex
01.01.2014, 02:04, "Ole Ersoy" <[email protected]>:
--Hi,I was wondering whether there is a way to setup node so that all project dependencies are kept in a user repository and loaded from there? I'd live to be able to have 2 projects, project1 and project2. Have project 2 depend on project 1. Then have the following workflow:1) Update project 12) Install project 1 in the local repository3) Run project 2Project 2 will automatically get the updates from project 1 since it's reading/loading it from the local repository folder (~/.npm ... or something).TIA and Happy New Year!Ole--
--
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.
