There is something similar to what you want to do, and it is the dedupe
command of npm (npm help dedupe). Completely flattening the node_modules
folder could not be possible, because there could be transitive
dependencies on the same module with different versions - which version to
use in this case?. Anyway, dedupe is a best effort to optimize the
dependencies of your project.


2014-05-28 1:14 GMT+02:00 Leza Morais Lutonda <[email protected]>:

>
> Hi,
>
> I want, when to install dependencies with npm (`npm install`) to have only
> one folder for node_modules in my project directory so that all my
> dependencies and dependencies of my dependencies (and dependencies of
> dependencies of dependencies ... of my dependencies) would be placed there.
>
> Is it possible with npm?
>
> Thanks.
>
> --
> *Leza Morais Lutonda, Lemol-C*
> http://lemol.github.io
>
>    50 Aniversario de la Cujae. Inaugurada por Fidel el 2 de diciembre de
> 1964 http://cujae.edu.cu
>
>   --
> 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/53851C5A.30101%40fecrd.cujae.edu.cu<https://groups.google.com/d/msgid/nodejs/53851C5A.30101%40fecrd.cujae.edu.cu?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CABQ8R0xCzRQadSHscwJGZ1QtaxpDnmKXBHs5RW-e4dACe-Ebzw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to