summaryrefslogtreecommitdiffstats
path: root/lang/node/patches/003-path.patch
blob: 011b02489760f585f1842bf9641544071e2ce7a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/lib/internal/modules/cjs/loader.js
+++ b/lib/internal/modules/cjs/loader.js
@@ -1378,7 +1378,8 @@ Module._initPaths = function() {
     path.resolve(process.execPath, '..') :
     path.resolve(process.execPath, '..', '..');
 
-  const paths = [path.resolve(prefixDir, 'lib', 'node')];
+  const paths = [path.resolve(prefixDir, 'lib', 'node'),
+                 path.resolve(prefixDir, 'lib', 'node_modules')];
 
   if (homeDir) {
     ArrayPrototypeUnshift(paths, path.resolve(homeDir, '.node_libraries'));