Skip to content

Commit 4fa2e4a

Browse files
NiroSugirljharb
authored andcommitted
correctly resolve paths that are on networked drives
1 parent 70850d2 commit 4fa2e4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/node-modules-paths.js

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = function nodeModulesPaths(start, opts) {
3737

3838
var dirs = paths.reduce(function (dirs, aPath) {
3939
return dirs.concat(modules.map(function (moduleDir) {
40-
return path.join(prefix, aPath, moduleDir);
40+
return path.resolve(prefix, aPath, moduleDir);
4141
}));
4242
}, []);
4343

0 commit comments

Comments
 (0)