diff --git a/src/cli/commands/global.js b/src/cli/commands/global.js index 99b80c0e5d..cffc322293 100644 --- a/src/cli/commands/global.js +++ b/src/cli/commands/global.js @@ -179,7 +179,7 @@ const {run, setFlags: _setFlags} = buildSubCommands('global', { await updateCwd(config); const updateBins = await initUpdateBins(config, reporter, flags); - if (args.includes('yarn')) { + if (args.indexOf('yarn') !== -1) { reporter.warn(reporter.lang('packageContainsYarnAsGlobal')); }