If the module you're trying to require isn't a native module and doesn't start with a path identifier, then Node will start by looking in the parent directory of the current module and appends /node_modules
. Node will then look in that directory, and if the module isn't there, then it will iterate up the filesystem tree until the root is reached.
Assuming you're developing from a modules folder, your require does these searches:
/module/path/lib/node_modules/reltoabs
/path/lib/node_modules/reltoabs
/lib/node_modules/reltoabs
This doesn't explain the error you're getting, but to avoid errors like yours, references files relatively when possible:
var reltoabs = require('./reltoabs')