2019-10-08 04:51:59 +00:00
|
|
|
--- a/lib/internal/modules/cjs/loader.js
|
|
|
|
+++ b/lib/internal/modules/cjs/loader.js
|
2021-06-18 09:04:29 +00:00
|
|
|
@@ -1202,7 +1202,8 @@ Module._initPaths = function() {
|
2019-10-08 04:51:59 +00: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 06:06:13 +00:00
|
|
|
+ path.resolve(prefixDir, 'lib', 'node_modules')];
|
2015-08-02 06:26:39 +00:00
|
|
|
|
|
|
|
if (homeDir) {
|
2021-06-18 09:04:29 +00:00
|
|
|
ArrayPrototypeUnshift(paths, path.resolve(homeDir, '.node_libraries'));
|