1
0

003-path.patch 439 B

123456789101112
  1. --- a/lib/module.js
  2. +++ b/lib/module.js
  3. @@ -453,7 +453,8 @@ Module._initPaths = function() {
  4. homeDir = process.env.HOME;
  5. }
  6. - var paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node')];
  7. + var paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node'),
  8. + path.resolve(process.execPath, '..', '..', 'lib', 'node_modules')];
  9. if (homeDir) {
  10. paths.unshift(path.resolve(homeDir, '.node_libraries'));