无法连接到开发服务器 react native ios 模拟器 Node
IT技术
node.js
reactjs
react-native
2021-05-21 00:00:35
2个回答
我针对上述问题尝试了多种解决方案。
- rm -rf node_modules/ && rm -rf yarn_lock/ && yarn install && cd ios && pod install
- 检查特定进程并通过指定 p_id nmp 取消该线程/进程
- 审计——修复
毕竟你必须做 yarn add react-native-gesture-handler react-native-reanimated react-native-screens
在 xcode 上关闭 bundler 和 shift +cmd + k 并通过 cmd + R 运行应用程序
我遇到了同样的问题,尝试了很多,但解决方案非常简单。只需从终端按下“i”键,连接就会正常进行。

