我是靠谱客的博主 优雅月饼,这篇文章主要介绍react-native 搭建项目时控制台一直:info There appears to be trouble with your network connection. Retrying...,现在分享给大家,希望可以做个参考。

在搭建react-native项目的时候,控制台到=运行一段时间后一直

info There appears to be trouble with your network connection. Retrying…
info There appears to be trouble with your network connection. Retrying…
info There appears to be trouble with your network connection. Retrying…
。。。

原本的命令是

npx react-native init MyApp 

解决问题的方法
使用--version参数(注意是两个杠)创建指定版本的项目。例如

npx react-native init MyApp --version 0.44.3

注意版本号必须精确到两个小数点

最后

以上就是优雅月饼最近收集整理的关于react-native 搭建项目时控制台一直:info There appears to be trouble with your network connection. Retrying...的全部内容,更多相关react-native内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(113)

评论列表共有 0 条评论

立即
投稿
返回
顶部