Skip to content

Instantly share code, notes, and snippets.

@hectorcorrea
hectorcorrea / node_modules-in-git.md
Created January 19, 2017 16:34 — forked from sukima/node_modules-in-git.md
Archive of mikeal's post since his server went down today

node_modules in git

December 10 2011
By mikeal

One of the many things we have been forced to rethink in the world of node is how we handle dependencies in applications.

One of the big changes that came with 0.4.0 was support for node_modules. This change had major consequences. It elevated local modules, in a local directory, above modules installed globally. Along with npm changing its default install preference to local rather than global we've seen a nearly unanimous shift to local module installs that has made global installs somewhat distasteful.