Skip to content

Commit

Permalink
node: fix path patch
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Panella <ianchi74@outlook.com>
  • Loading branch information
ianchi committed Aug 17, 2017
1 parent 162c6a7 commit 2a42eda
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lang/node/patches/003-path.patch
Original file line number Diff line number Diff line change
@@ -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'));

0 comments on commit 2a42eda

Please sign in to comment.