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

Conversation

yourchocomate
Copy link
Contributor

Error: RuntimeException - TTY mode is not supported on Windows platform.

Screenshot 2024-03-13 063237

Description

This PR addresses a compatibility issue on Windows platforms where TTY mode is not supported. The issue arises in the installNodeDependencies() function, where TTY mode is set unnecessarily. This setting triggers a Symfony\Component\Process\Exception\RuntimeException due to unsupported TTY mode on Windows.

Changes Made

  • Removed unnecessary TTY mode from Symfony Process configuration.
  • Conditionally set the TTY mode based on the operating system, ensuring compatibility with both Windows and non-Windows platforms.
  • Improved error handling and user feedback in case of failed command execution.

@yourchocomate yourchocomate changed the title Fix: Removed TTY mode to resolve Windows compatibility issue [11.x] Fix: Removed TTY mode to resolve Windows compatibility issue Mar 13, 2024
@taylorotwell taylorotwell merged commit d948bf3 into laravel:11.x Mar 13, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants