4 ms·
npm currently supports ~/.node_modules, by the way (which node has supported for ages)
by jdub 16y ago
npm currently supports ~/.node_modules, by the way (which node has supported for ages)
- coenhyde 16y agoBut then you are still relying on modules available and their versions on the system where the node app is running. Bundling is a much more reliable way of doing things.
- jdub 16y agoBundling (and the like) is a necessary evil of ecosystems riding hard on the bleeding edge, like node.js... ... and I would say Ruby/Rails, but they ought to be growing up by now, and integrating sensibly with platform package management. :-) The difference between Python and Ruby on Debian/Ubuntu systems is astounding, and as the node.js ecosystem matures I dearly hope it will look more like the Python world than the unending adolescence of Ruby/Rails.
- mnutt 16y agoI don't think it's really fair to lay all of the blame with node and ruby/rails in this case; the distro package managers are just as much at fault: http://sheddingbikes.com/posts/1285063820.html http://sheddingbikes.com/posts/1285063820.html It really just depends on what you're trying to do. As a desktop user you probably care most about stability; we can't have a python upgrade breaking apt. As a developer it's often important to have an up-to-date version of the tools and libraries you're using.
- steveklabnik 16y ago> the unending adolescence It has nothing to do with adolescence, and everything to do with different priorities. Debian favors stability, Ruby favors breakneck progress. Each has their pros and cons.
- nailer 16y agoAwesome! Alas the doc I've been reading all points to the normal /usr/local method (eg, https://github.com/isaacs/npm/blob/master/doc/faq.md https://github.com/isaacs/npm/blob/master/doc/faq.md doesn't mention the new stuff). How can I make it use ~/.node_modules?