diff --git a/bin/prompt-command.js b/bin/prompt-command.js index 71f697c9360..f9a58b4fca5 100644 --- a/bin/prompt-command.js +++ b/bin/prompt-command.js @@ -58,6 +58,10 @@ module.exports = function promptForInstallation(packages, ...args) { options[0] = "add"; } + if (packages === "init") { + options[1] = "-g"; + } + const commandToBeRun = `${packageManager} ${options.join(" ")}`; const question = `Would you like to install ${packages}? (That will run ${commandToBeRun}) (yes/NO)`;