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
398 B

  1. --- a/lib/module.js
  2. +++ b/lib/module.js
  3. @@ -625,7 +625,8 @@
  4. } else {
  5. prefixDir = path.resolve(process.execPath, '..', '..');
  6. }
  7. - var paths = [path.resolve(prefixDir, 'lib', 'node')];
  8. + var paths = [path.resolve(prefixDir, 'lib', 'node'),
  9. + path.resolve(prefixDir, 'lib', 'node_modules')];
  10. if (homeDir) {
  11. paths.unshift(path.resolve(homeDir, '.node_libraries'));