Hey Bradley, Thanks for your answer and sorry for NOT clarifying my question in more detail.
I was referring specifically to node's documentation on recommended module directory structure with regards to module version number (http://nodejs.org/docs/latest/api/modules.html#modules_addenda_package_manager_tips). Ideally, npm would automatically create this structure when installing a module (maybe in a global install or something): ./module/version/ Then you could symlink dependencies by version number. Pie in the sky, node would add requested version number to the lookup module paths (module.js) and handle versions in require(). My questions really is, what is the workflow for following the recommended structure (link provided above)? Thanks again! On Monday, March 4, 2013 4:04:53 PM UTC-5, Bradley Meck wrote: > > This structure is currently present in node. > > * NPM uses local modules in a similar structure with `/usr/lib/node` > replaced with the directory containing your `package.json`. > * Global modules are installed as local modules name-spaced to the > appropriate directory such as `/usr/lib/node_modules`. > * Symbolic links work in as described above when using `npm link`. Linking > is not the default behavior in `npm` workflows usually so this does not > often come up. > > It is unlikely node will move to shared global modules as are present in > other languages any time soon due to potential shared module version > mismatches, and it is also unlikely for that reason that symlinks will be > used by default. If you do need to use symlinks for w/e reason, look at > `npm link`. > -- -- 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.
