gatesvp/cloudfoundry_node_mongodb — Issue #1: Module require
Author: newtriks
Created: 2011-11-23 21:33:12+00:00
State: open

require.paths.unshift('./node_modules');

...now throws an error with node (I think from > 5.x) and it can be resolved simply by using require('mongodb');

http://nodejs.org/docs/latest/api/modules.html#loading_from_node_modules_Folders