npm/npm — pull request #6067 by isaacs (2014-08-29 23:22:28+00:00)
Title: Run commands in prefix, not cwd

In general, we should never be relying on {cwd}/package.json.

The current working directory should be used for printing out relative
paths for human consumption, but npm should always walk up the directory
tree to find its working dir for *doing* stuff.

Fix #6059