diff --git a/lib/commands/whoami.js b/lib/commands/whoami.js index d2ff6fd02bcdd..4497f9b3a542d 100644 --- a/lib/commands/whoami.js +++ b/lib/commands/whoami.js @@ -5,7 +5,7 @@ class Whoami extends BaseCommand { static description = 'Display npm username' static name = 'whoami' static params = ['registry'] - static ignoreImplicitWorkspace = false + static ignoreImplicitWorkspace = true async exec (args) { const username = await getIdentity(this.npm, { ...this.npm.flatOptions })