diff options
author | Adrian Panella <ianchi74@outlook.com> | 2017-08-17 01:06:13 -0500 |
---|---|---|
committer | Adrian Panella <ianchi74@outlook.com> | 2017-08-17 01:06:13 -0500 |
commit | 2a42edabdbc0b33a7923fc4306dd57391df07286 (patch) | |
tree | 76216679faadfeafb8de7d23ac7e4b5fe02a3f71 /lang/node/patches/003-path.patch | |
parent | 162c6a70c92cc139d815e76c3a8068b8cb7f6386 (diff) |
node: fix path patch
Signed-off-by: Adrian Panella <ianchi74@outlook.com>
Diffstat (limited to 'lang/node/patches/003-path.patch')
-rw-r--r-- | lang/node/patches/003-path.patch | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lang/node/patches/003-path.patch b/lang/node/patches/003-path.patch index 01a71c6a3..7938c804b 100644 --- a/lang/node/patches/003-path.patch +++ b/lang/node/patches/003-path.patch @@ -1,12 +1,13 @@ --- a/lib/module.js +++ b/lib/module.js -@@ -453,7 +453,8 @@ Module._initPaths = function() { - homeDir = process.env.HOME; +@@ -625,7 +625,8 @@ + } else { + prefixDir = path.resolve(process.execPath, '..', '..'); } - -- var paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node')]; -+ var paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node'), -+ path.resolve(process.execPath, '..', '..', 'lib', 'node_modules')]; +- var paths = [path.resolve(prefixDir, 'lib', 'node')]; ++ var paths = [path.resolve(prefixDir, 'lib', 'node'), ++ path.resolve(prefixDir, 'lib', 'node_modules')]; if (homeDir) { paths.unshift(path.resolve(homeDir, '.node_libraries')); +
\ No newline at end of file |