npm cache directory

# 02 Feb 2015

To keep npm from writing to your home directory, override the cache location.

export NPM_CONFIG_CACHE="./.npm"
npm install

Or, put an .npmrc in your package's root directory.

cache=./.npm