diff options
author | isaacs <i@izs.me> | 2010-10-06 03:04:31 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-10-15 02:03:35 +0400 |
commit | 732fb2d16d70382a5efb185239fd8409d971068c (patch) | |
tree | a8fc80bad5c399e54c8e2dcc1a48abd144946fd7 /lib/utils/default-config.js | |
parent | af94ccd140a72c4b7625e6dde6d76ab586a8134f (diff) |
sudo doesn't read userconfig file unless explicitly told to.
Diffstat (limited to 'lib/utils/default-config.js')
-rw-r--r-- | lib/utils/default-config.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/default-config.js b/lib/utils/default-config.js index 349307923..eb085f5a4 100644 --- a/lib/utils/default-config.js +++ b/lib/utils/default-config.js @@ -20,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 ? null : path.join(process.env.HOME, ".npmrc") + , userconfig : !isSudo && path.join(process.env.HOME, ".npmrc") , binroot : path.dirname(process.execPath) , dev : false , loglevel : "info" |