Line
Link Here
|
0 |
-- a/deps/npm/lib/config/core.js |
0 |
++ b/deps/npm/lib/config/core.js |
Lines 153-163
Link Here
|
153 |
// Eg, `npm config get globalconfig --prefix ~/local` should |
153 |
// Eg, `npm config get globalconfig --prefix ~/local` should |
154 |
// return `~/local/etc/npmrc` |
154 |
// return `~/local/etc/npmrc` |
155 |
// annoying humans and their expectations! |
155 |
// annoying humans and their expectations! |
156 |
if (conf.get('prefix')) { |
156 |
// gentoo deviates wrt global config; store in /etc/npm |
157 |
var etc = path.resolve(conf.get('prefix'), 'etc') |
157 |
var globalconfig = path.resolve('/etc', 'npm') |
158 |
defaults.globalconfig = path.resolve(etc, 'npmrc') |
158 |
defaults.globalconfig = path.resolve(globalconfig, 'npmrc') |
159 |
defaults.globalignorefile = path.resolve(etc, 'npmignore') |
159 |
defaults.globalignorefile = path.resolve(globalconfig, 'npmignore') |
160 |
} |
|
|
161 |
|
160 |
|
162 |
conf.addFile(conf.get('globalconfig'), 'global') |
161 |
conf.addFile(conf.get('globalconfig'), 'global') |
163 |
|
162 |
|