for modules, since that is the location where npm installs modules globally. Removes the need to use npm link to link global modules into each project. OK Aaron Bieber (MAINTAINER)
13 lines
572 B
Plaintext
13 lines
572 B
Plaintext
$OpenBSD: patch-lib_module_js,v 1.1 2012/01/05 20:36:53 jeremy Exp $
|
|
--- lib/module.js.orig Wed Jan 4 09:06:46 2012
|
|
+++ lib/module.js Wed Jan 4 09:08:58 2012
|
|
@@ -473,6 +473,8 @@ Module.runMain = function() {
|
|
Module._initPaths = function() {
|
|
var paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node')];
|
|
|
|
+ paths.unshift(path.resolve('${TRUEPREFIX}', 'lib', 'node_modules'));
|
|
+
|
|
if (process.env['HOME']) {
|
|
paths.unshift(path.resolve(process.env['HOME'], '.node_libraries'));
|
|
paths.unshift(path.resolve(process.env['HOME'], '.node_modules'));
|