diff options
Diffstat (limited to 'lib/rebuild.js')
-rw-r--r-- | lib/rebuild.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rebuild.js b/lib/rebuild.js index 74f5ae5f6..c11747b97 100644 --- a/lib/rebuild.js +++ b/lib/rebuild.js @@ -27,7 +27,7 @@ class Rebuild extends BaseCommand { async rebuild (args) { const globalTop = resolve(this.npm.globalDir, '..') - const where = this.npm.flatOptions.global ? globalTop : this.npm.prefix + const where = this.npm.config.get('global') ? globalTop : this.npm.prefix const arb = new Arborist({ ...this.npm.flatOptions, path: where, |