diff options
author | isaacs <i@izs.me> | 2012-08-22 21:30:47 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-08-22 21:30:47 +0400 |
commit | fe1b16c1fdb9cc0fc596d3b7b14f35953870e0ca (patch) | |
tree | a39213f7af46853a9c383ee6ba5da6973895ad4e | |
parent | a97b0aad8c6bfdcb608746d03290cf4de84ac277 (diff) |
Respect builtin config
-rw-r--r-- | lib/npm.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/npm.js b/lib/npm.js index 5728f7343..8f42b2784 100644 --- a/lib/npm.js +++ b/lib/npm.js @@ -265,7 +265,8 @@ function load (npm, cli, cb) { // look up configs //console.error("about to look up configs") - npmconf.load(cli, function (er, conf) { + var builtin = path.resolve(__dirname, "..", "npmrc") + npmconf.load(cli, builtin, function (er, conf) { if (er === conf) er = null npm.config = conf |