diff --git a/lib/module.js b/lib/module.js index 8738c4cdd68..11ef3c50d74 100644 --- a/lib/module.js +++ b/lib/module.js @@ -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"]) { modulePaths.unshift(path.join(process.env["HOME"], ".node_libraries"));