summaryrefslogtreecommitdiff
path: root/node/patches/003-path.patch
diff options
context:
space:
mode:
Diffstat (limited to 'node/patches/003-path.patch')
-rw-r--r--node/patches/003-path.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/node/patches/003-path.patch b/node/patches/003-path.patch
new file mode 100644
index 0000000..01a71c6
--- /dev/null
+++ b/node/patches/003-path.patch
@@ -0,0 +1,12 @@
+--- a/lib/module.js
++++ b/lib/module.js
+@@ -453,7 +453,8 @@ Module._initPaths = function() {
+ homeDir = process.env.HOME;
+ }
+
+- var paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node')];
++ var paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node'),
++ path.resolve(process.execPath, '..', '..', 'lib', 'node_modules')];
+
+ if (homeDir) {
+ paths.unshift(path.resolve(homeDir, '.node_libraries'));