端口8081在“react-native run-ios”中已经在使用
发布时间:2020-12-15 16:19:57 所属栏目:百科 来源:网络整理
导读:是的我已经读过这个但仍然不知道如何使它工作. react native – Port 8081 already in use,packager is either not running or not running correctly Command /bin/sh failed with exit code 2 最初我是这样做的 1. react-native init Hello2. react-native
是的我已经读过这个但仍然不知道如何使它工作.
react native – Port 8081 already in use,packager is either not running or not running correctly Command /bin/sh failed with exit code 2 最初我是这样做的 1. react-native init Hello 2. react-native run-ios 然后点击“已使用的端口8081”. 读过反应文件,https://facebook.github.io/react-native/docs/troubleshooting.html 1. cannot kill the process using 8081,it keeps on coming back,and i don't want to kill it 2. react-native start --port=8088 3. update node_modules/react- native/React/React.xcodeproj/project.pbxproj file. Did it. 应该在哪里和哪一步运行“react-native start –port = 8088”? 顺便说一句,我是一名普通的工程师,但如果我不能在2小时内运行第一反应本机样本,我就看不出它是如何飞行的,这非常烦人. 解决方法
在RN 0.55中,你可以解决这个问题:
react-native start –port = 1234 然后在另一个窗口: react-native run-ios –port 1234 版本: ? react-native --version react-native-cli: 2.0.1 react-native: 0.55.4 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |