Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.x] Fix: Removed TTY mode to resolve Windows compatibility issue #50495

Merged
merged 7 commits into from
Mar 13, 2024
16 changes: 12 additions & 4 deletions src/Illuminate/Foundation/Console/BroadcastingInstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,17 @@ protected function installNodeDependencies()
];
}

Process::command(implode(' && ', $commands))
->path(base_path())
->tty(true)
->run();
$command = Process::command(implode(' && ', $commands))
->path(base_path());

if (! windows_os()) {
$command->tty(true);
}

if ($command->run()->failed()) {
$this->components->warn("Node dependency installation failed. Please run the following commands manually: \n\n" . implode(" && ", $commands));
} else {
$this->components->info("Node dependencies installed successfully.");
}
}
}
Loading