diff options
Diffstat (limited to 'deps/npm/lib/commands/config.js')
-rw-r--r-- | deps/npm/lib/commands/config.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/npm/lib/commands/config.js b/deps/npm/lib/commands/config.js index 0432abac39..96dd4abcaf 100644 --- a/deps/npm/lib/commands/config.js +++ b/deps/npm/lib/commands/config.js @@ -276,7 +276,7 @@ ${defData} msg.push('') } - if (!this.npm.config.get('global')) { + if (!this.npm.global) { const pkgPath = resolve(this.npm.prefix, 'package.json') const pkg = await rpj(pkgPath).catch(() => ({})) |