diff options
author | isaacs <i@izs.me> | 2010-10-30 00:52:17 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-10-30 00:52:17 +0400 |
commit | 4c759ea50f2c718e09cc7a6f179d44fb27082cd8 (patch) | |
tree | 98b36d48c145c22f2a8c192dd4fa15f06b3a10a5 /lib/utils/default-config.js | |
parent | 52f0171ccce78eddee9d8c3d3c926309427df252 (diff) |
Revert the branching behavior on sudo. It is only fail.
Diffstat (limited to 'lib/utils/default-config.js')
-rw-r--r-- | lib/utils/default-config.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/utils/default-config.js b/lib/utils/default-config.js index e74ee7ef3..cc00e9602 100644 --- a/lib/utils/default-config.js +++ b/lib/utils/default-config.js @@ -9,8 +9,7 @@ try { if (!process.execPath) { process.execPath = path.join(process.installPrefix, "bin", "node") } -var isSudo = process.getuid() === 0 - , stdio = process.binding("stdio") +var stdio = process.binding("stdio") module.exports = { "auto-activate" : "always" , "update-dependents" : true @@ -21,7 +20,7 @@ module.exports = , proxy : process.env.http_proxy || null , root : path.join(process.execPath, "..", "..", "lib", "node") , globalconfig : path.join(process.execPath, "..", "..", "etc", "npmrc") - , userconfig : !isSudo && path.join(process.env.HOME, ".npmrc") + , userconfig : path.join(process.env.HOME, ".npmrc") , binroot : path.dirname(process.execPath) , dev : false , loglevel : "info" |