Browse Source

Look in /usr/local/lib/node for modules, so that there's a way to install modules globally

v0.7.4-release
isaacs 15 years ago
committed by Ryan Dahl
parent
commit
c0d42b0365
  1. 2
      lib/module.js

2
lib/module.js

@ -86,7 +86,7 @@ function existsSync (path) {
var modulePaths = [];
var modulePaths = [path.join(process.installPrefix, "lib", "node")];
if (process.env["HOME"]) {
modulePaths.unshift(path.join(process.env["HOME"], ".node_libraries"));

Loading…
Cancel
Save