We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d549a7 commit a15bc79Copy full SHA for a15bc79
index.js
@@ -39,7 +39,8 @@ function Deps (opts) {
39
40
this.paths = opts.paths || process.env.NODE_PATH || '';
41
if (typeof this.paths === 'string') {
42
- this.paths = this.paths.split(path.delimiter);
+ var delimiter = path.delimiter || (process.platform === 'win32' ? ';' : ':');
43
+ this.paths = this.paths.split(delimiter);
44
}
45
this.paths = this.paths
46
.filter(Boolean)
0 commit comments