diff --git a/lib/module.js b/lib/module.js index 9eba6bfdc15518..d9b4415ad8fe94 100644 --- a/lib/module.js +++ b/lib/module.js @@ -143,7 +143,7 @@ Module._findPath = function(request, paths) { // For each path for (var i = 0, PL = paths.length; i < PL; i++) { // Don't search further if path doesn't exist - if (paths[i] && internalModuleStat(paths[i]) < 1) continue; + if (paths[i] && internalModuleStat(path._makeLong(paths[i])) < 1) continue; var basePath = path.resolve(paths[i], request); var filename;