mirror of https://github.com/nodejs/node.git
Use execPath for default NODE_PATH, not installPrefix
parent
fb645f75fb
commit
781d51285d
|
@ -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"));
|
||||||
|
|
Loading…
Reference in New Issue