creationix/nvm — pull request #97 by caio (2012-01-18 19:50:11+00:00)
Title: Set the NODE_PATH variable when activating node

When installing packages with npm using the global switch `-g` the package ends
up in the proper directory (i.e. .nvm/$VERSION/lib/node_modules), however node
is unable to require it since it somehow isn't searching on it's prefix.

This patch fixes this behavior by manually adding the `node_modules` dir to the
`NODE_PATH` variable.