Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rebuild.js')
-rw-r--r--lib/rebuild.js2
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,