2019-10-08 06:51:59 +02:00
|
|
|
--- a/lib/internal/modules/cjs/loader.js
|
|
|
|
+++ b/lib/internal/modules/cjs/loader.js
|
2021-10-13 01:10:57 +02:00
|
|
|
@@ -1202,7 +1202,8 @@ Module._initPaths = function() {
|
2019-10-08 06:51:59 +02:00
|
|
|
path.resolve(process.execPath, '..') :
|
|
|
|
path.resolve(process.execPath, '..', '..');
|
|
|
|
|
|
|
|
- let paths = [path.resolve(prefixDir, 'lib', 'node')];
|
|
|
|
+ let paths = [path.resolve(prefixDir, 'lib', 'node'),
|
2017-08-17 08:06:13 +02:00
|
|
|
+ path.resolve(prefixDir, 'lib', 'node_modules')];
|
2015-08-02 08:26:39 +02:00
|
|
|
|
|
|
|
if (homeDir) {
|
2021-06-18 11:04:29 +02:00
|
|
|
ArrayPrototypeUnshift(paths, path.resolve(homeDir, '.node_libraries'));
|