patch-lib_module_js 575 B

12345678910111213141516
  1. $OpenBSD: patch-lib_module_js,v 1.5 2016/01/29 20:12:04 abieber Exp $
  2. --- lib/module.js.orig Sun Jan 17 11:41:55 2016
  3. +++ lib/module.js Sun Jan 17 11:45:54 2016
  4. @@ -478,7 +478,10 @@ Module._initPaths = function() {
  5. var homeDir = process.env.HOME;
  6. }
  7. - var paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node')];
  8. + var paths = [
  9. + path.resolve(process.execPath, '..', '..', 'lib', 'node'),
  10. + path.resolve(process.execPath, '..', '..', 'lib', 'node_modules')
  11. + ];
  12. if (homeDir) {
  13. paths.unshift(path.resolve(homeDir, '.node_libraries'));