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
Windows: Cannot start server in new window because no terminal app was specified #2219
Comments
Facing same issue |
this problem is occuring from react native version 0.72.9 |
Same here. I upgraded from react-native@0.72 to react-native@0.73.1, and then, the problem occurred. I found a temporary solution that is to use |
App works fine till react native version 0.72.8 . Problem begins from 0.72.9 |
Check if your app works fine in RN 0.72.8 |
Hey @Navpan18, @coder-xiaomo can you try passing via |
This works for me. However it only opens a new window and doesn't automatically run andoid, it acts as if you've run react-native start only |
Interesting, can you please record a video which presents this behaviour? |
Sure, I've recorded 2 GIFs below. When I run 'yarn android:test' it is the following npm script:
The first video, you can see that even after waiting for over a minute, the Android build doesn't start. You have to press a in the Metro terminal but then all of the parameters are lost This second video, I run the same script with Metro already running and the Android build starts immediately |
doesn't work |
Same issue, trying to solve it. |
+1 |
temporary is run script: npx react-native start and after that type mode a |
This works for me, thx. I ran "npx react-native start", then hit "a" when it gave me the option to |
Try running the following command:😊
|
Getting this bug on windows+android on 0.73.1. Works fine on 0.73.0. Not tested on mac/ios. |
I fix my problem with npx react-native run-android --terminal powershell however I want to use only npx react-native run-android |
@machadinha @Shreyas-29 for you it is not working because you don't have |
you can also do |
This comment was marked as resolved.
This comment was marked as resolved.
Its resolved I thinks |
PS FILE_PATH> npx react-native run-android --terminal It was asking string like node, powershell etc. |
|
This comment was marked as resolved.
This comment was marked as resolved.
|
funcionou!! |
on MacOS M1 14.2.1 (23C71)
worked for me, and then for easy access, I added this under the
and then |
Running: Running: Fix: As suggested above I ran MacOS Sonoma 14.1 |
Do you want to request a feature or report a bug?
Report a bug
It's originally raised on StackOverflow https://stackoverflow.com/questions/77684266/react-native-error-cannot-start-server-in-new-window-because-no-terminal-app-wa/77688826
What is the current behavior?
When launching react-native metro on Windows, it gets "error Cannot start server in new window because no terminal app was specified".
If the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can
yarn install
andyarn test
.It's really just a fresh react-native project using the standard init.
If you don't like to run it yourself, I have created a repo for you. No customization whatsoever, just a fresh react-native project.
https://github.com/feng-yu-healthbank/AwesomeProject
Please note the error is specific to Windows.
What is the expected behavior?
The empty project launches into an Android emulator by
npm run android
.Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.
It's a fresh official react-native sample project. No customization is applied.
Metro version
metro config:
npx react-native info
The text was updated successfully, but these errors were encountered: