windowsreact-nativemicrosoft-metro

React Native: "error Cannot start server in new window because no terminal app was specified"


After updating to React Native v73.1, I'm getting the below error when trying to run the app in Windows:

error Cannot start server in new window because no terminal app was specified.

How can I fix it?

On a Mac machine, there aren't any issues. Only Windows is facing this issue.


Solution

  • I had the same issue using React Native 0.73.1, when I had to run release mode.

    In the case of debug mode, you can simply use npm start and then a.

    However, if you want to run release mode, use npm start to run Metro, open a new terminal and execute npx react-native run-android --mode=release.

    This worked in my case.