diff options
-rw-r--r-- | lib/npm.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/npm.js b/lib/npm.js index 7b9c54b07..34df1c233 100644 --- a/lib/npm.js +++ b/lib/npm.js @@ -311,6 +311,18 @@ function load (npm, cli, cb) { npm.config = config if (er) return cb(er) + // if the "project" config is not a filename, and we're + // not in global mode, then that means that it collided + // with either the default or effective userland config + if (!config.get("global") + && config.sources.project + && config.sources.project.type !== "ini") { + log.verbose("config" + , "Skipping project config: %s. " + + "(matches userconfig)" + , config.localPrefix + "/.npmrc") + } + // Include npm-version and node-version in user-agent var ua = config.get("user-agent") || "" ua = ua.replace(/\{node-version\}/gi, process.version) |