Require local files relative to the root of your node project.
Require local files relative to the path provided at require.
npm install include
var include = require('include')(__dirname);
var foo = require('../../../path/to/foo');
var foo = include('path/to/foo');
how? learn more