isaacs/npm — Issue #2072: npm installs packages into `pwd`/node_modules
Author: mcandre
Created: 2012-01-21 18:33:10+00:00
State: open

NPM installs packages in whatever my current directory is, instead of `~/npm` or `~/node_modules`. As a result, there are tons of little `node_modules` floating around my system.

Is this the expected behavior. In other words, does Node/NPM only check the current directory for `node_modules` for installed packages in a larger local project?

Or did something go wrong with my NPM installation?

Specs:

* NPM 1.0.106
* Node v0.4.11
* Mac OS X 10.7.2