Skip to content

Commit 14d08be

Browse files
NiroSugirljharb
authored andcommitted
[Fix] node-modules-paths: correctly resolve paths that are on Windows networked drives
Fixes #155.
1 parent 1354943 commit 14d08be

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
@@ -18,7 +18,7 @@ var getNodeModulesDirs = function getNodeModulesDirs(absoluteStart, modules) {
1818

1919
return paths.reduce(function (dirs, aPath) {
2020
return dirs.concat(modules.map(function (moduleDir) {
21-
return path.join(prefix, aPath, moduleDir);
21+
return path.resolve(prefix, aPath, moduleDir);
2222
}));
2323
}, []);
2424
};

0 commit comments

Comments
 (0)