React Native:错误无法在新窗口中启动服务器,因为未指定终端应用程序

问题描述 投票:0回答:1

更新react-native v73.1后,尝试在Windows中运行该应用程序时出现以下错误。

error Cannot start server in new window because no terminal app was specified. 
有人之前遇到过这个问题吗?

在 Mac 机器上没有问题,只有 Windows 面临这个问题

windows react-native microsoft-metro
1个回答
0
投票

看起来 Metro 已经删除了对 Windows 终端的支持,只允许使用 bash 终端。我必须在 git bash 中启动它一次,并保持 Metro 窗口打开,然后才能在 Windows 终端中启动 React-native。

© www.soinside.com 2019 - 2024. All rights reserved.