Skip to content

Commit

Permalink
Merge pull request #6907 from webpack/bugfix/cli-windows
Browse files Browse the repository at this point in the history
use shell mode for windows support
  • Loading branch information
sokra committed Mar 29, 2018
2 parents e3bb8c9 + 30c35ab commit 26c0c60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/webpack.js
Expand Up @@ -3,7 +3,8 @@ function runCommand(command, options) {
const cp = require("child_process");
return new Promise((resolve, reject) => {
const executedCommand = cp.spawn(command, options, {
stdio: "inherit"
stdio: "inherit",
shell: true
});

executedCommand.on("error", error => {
Expand Down Expand Up @@ -43,7 +44,7 @@ if (!webpackCliInstalled) {

const commandToBeRun = `${packageManager} ${options.join(" ")}`;

const question = `Would you like to install webpack-cli? (That will run ${commandToBeRun}) `;
const question = `Would you like to install webpack-cli? (That will run ${commandToBeRun}) (yes/NO)`;

console.error("The CLI moved into a separate package: webpack-cli");
const questionInterface = readLine.createInterface({
Expand Down

0 comments on commit 26c0c60

Please sign in to comment.