Use execPath for default NODE_PATH, not installPrefix

v0.7.4-release
isaacs 2010-07-02 21:38:06 -07:00 committed by Ryan Dahl
parent fb645f75fb
commit 781d51285d
1 changed files with 1 additions and 1 deletions

View File

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