2019-10-08 12:51:59 +08:00
|
|
|
--- a/lib/internal/modules/cjs/loader.js
|
|
|
|
+++ b/lib/internal/modules/cjs/loader.js
|
2024-04-07 10:34:45 +08:00
|
|
|
@@ -1529,7 +1529,8 @@ Module._initPaths = function() {
|
2019-10-08 12:51:59 +08:00
|
|
|
path.resolve(process.execPath, '..') :
|
|
|
|
path.resolve(process.execPath, '..', '..');
|
|
|
|
|
2022-04-04 11:50:20 +08:00
|
|
|
- const paths = [path.resolve(prefixDir, 'lib', 'node')];
|
|
|
|
+ const paths = [path.resolve(prefixDir, 'lib', 'node'),
|
|
|
|
+ path.resolve(prefixDir, 'lib', 'node_modules')];
|
2015-08-02 14:26:39 +08:00
|
|
|
|
|
|
|
if (homeDir) {
|
2021-06-18 17:04:29 +08:00
|
|
|
ArrayPrototypeUnshift(paths, path.resolve(homeDir, '.node_libraries'));
|