You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
507 B

  1. --- a/lib/internal/modules/cjs/loader.js
  2. +++ b/lib/internal/modules/cjs/loader.js
  3. @@ -1202,7 +1202,8 @@ Module._initPaths = function() {
  4. path.resolve(process.execPath, '..') :
  5. path.resolve(process.execPath, '..', '..');
  6. - let paths = [path.resolve(prefixDir, 'lib', 'node')];
  7. + let paths = [path.resolve(prefixDir, 'lib', 'node'),
  8. + path.resolve(prefixDir, 'lib', 'node_modules')];
  9. if (homeDir) {
  10. ArrayPrototypeUnshift(paths, path.resolve(homeDir, '.node_libraries'));