当前位置: 首页 > news >正文

android开发者官网郑州seo外包

android开发者官网,郑州seo外包,网站ico,杭州设计院创建React Native的第一个hello world工程 需要安装好node、npm环境 如果之前没有安装过react-native-cli脚手架的,可以按照下述步骤直接安装。如果已经安装过的,但是在使用这个脚手架初始化工程的时候遇到下述报错的话 cli.init(root, projectname);…

创建React Native的第一个hello world工程

需要安装好node、npm环境

如果之前没有安装过react-native-cli脚手架的,可以按照下述步骤直接安装。如果已经安装过的,但是在使用这个脚手架初始化工程的时候遇到下述报错的话

cli.init(root, projectname);^
typeerror: cli.init is not a functionat run (c:\users\showbi\appdata\roaming\npm\node_modules\react-native-cli\index.js:302:7)at createproject (c:\users\showbi\appdata\roaming\npm\node_modules\react-native-cli\index.js:249:3)at init (c:\users\showbi\appdata\roaming\npm\node_modules\react-native-cli\index.js:200:5)at object.<anonymous> (c:\users\showbi\appdata\roaming\npm\node_modules\react-native-cli\index.js:153:7)at module._compile (node:internal/modules/cjs/loader:1105:14)at object.module._extensions..js (node:internal/modules/cjs/loader:1159:10)at module.load (node:internal/modules/cjs/loader:981:32)at function.module._load (node:internal/modules/cjs/loader:822:12)at function.executeuserentrypoint [as runmain] (node:internal/modules/run_main:77:12)at node:internal/main/run_main_module:17:47

也可以先直接卸载

npm uninstall -g react-native-cli

正常安装过程:

  1. 安装react-native-cli
npm install -g react-native-cli
  1. 安装react-native
npm install -g react-native

安装完成之后,可以用脚手架来初始化项目

npx react-native init firstRNProject

就会出现下述的界面

image-20231016110848723

安装编译到Android手机上去

react-native run-android

外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传

启动以后的界面如下所示:

Screenshot_2023-10-16-16-40-48-92_85a2c6e718c04c836aaa40a26ea60b9a

在这个过程中可能会遇到一些版本带来的问题,

  • 比如0.69的版本时候,会遇到上述脚手架初始化的时候报错,参考 https://github.com/facebook/react-native/issues/34055
    npx react-native init ProjectName --version 0.68.2 选择其他版本解决
  • ruby版本和gem版本不匹配的时候,报错日志信息Your Ruby version is 3.1.2, but your Gemfile specified 2.7.5
    参考 https://github.com/facebook/react-native/issues/35127
  • 启动后报错提示报错信息如下
    在这里插入图片描述
    参考https://github.com/facebook/react-native/issues/21530,清除缓存重新npm install安装新的依赖包解决
    react-native start --reset-cache
    react-native run-android

文章转载自:
http://antiknock.fwrr.cn
http://springtail.fwrr.cn
http://cytochimera.fwrr.cn
http://sugarcoat.fwrr.cn
http://oct.fwrr.cn
http://toleware.fwrr.cn
http://inturned.fwrr.cn
http://putrescence.fwrr.cn
http://jurimetrics.fwrr.cn
http://potheen.fwrr.cn
http://peter.fwrr.cn
http://comtism.fwrr.cn
http://jedediah.fwrr.cn
http://consubstantiate.fwrr.cn
http://condignly.fwrr.cn
http://adynamia.fwrr.cn
http://quantitate.fwrr.cn
http://seniority.fwrr.cn
http://noia.fwrr.cn
http://icebound.fwrr.cn
http://flywheel.fwrr.cn
http://cheekily.fwrr.cn
http://reflected.fwrr.cn
http://bre.fwrr.cn
http://vahine.fwrr.cn
http://west.fwrr.cn
http://corydalis.fwrr.cn
http://infobahn.fwrr.cn
http://podsolisation.fwrr.cn
http://saskatchewan.fwrr.cn
http://heart.fwrr.cn
http://ringing.fwrr.cn
http://allowance.fwrr.cn
http://meshuga.fwrr.cn
http://avionics.fwrr.cn
http://pomposity.fwrr.cn
http://renardite.fwrr.cn
http://actinide.fwrr.cn
http://coralbells.fwrr.cn
http://sprinkling.fwrr.cn
http://windgall.fwrr.cn
http://tear.fwrr.cn
http://dasyure.fwrr.cn
http://preposterous.fwrr.cn
http://reporter.fwrr.cn
http://spectropolarimeter.fwrr.cn
http://booming.fwrr.cn
http://hieromonk.fwrr.cn
http://divalent.fwrr.cn
http://danaides.fwrr.cn
http://succinate.fwrr.cn
http://knop.fwrr.cn
http://baryonium.fwrr.cn
http://delighted.fwrr.cn
http://unconceivable.fwrr.cn
http://levelheaded.fwrr.cn
http://hypogastric.fwrr.cn
http://catling.fwrr.cn
http://changemaker.fwrr.cn
http://coulter.fwrr.cn
http://facture.fwrr.cn
http://lurcher.fwrr.cn
http://gnome.fwrr.cn
http://konimeter.fwrr.cn
http://jurisprudent.fwrr.cn
http://handbookinger.fwrr.cn
http://quesadilla.fwrr.cn
http://cuspy.fwrr.cn
http://cataleptiform.fwrr.cn
http://focalization.fwrr.cn
http://slouching.fwrr.cn
http://studdie.fwrr.cn
http://mysterious.fwrr.cn
http://travelog.fwrr.cn
http://clouet.fwrr.cn
http://clc.fwrr.cn
http://mantilla.fwrr.cn
http://holomorphism.fwrr.cn
http://falkner.fwrr.cn
http://greisen.fwrr.cn
http://thessaly.fwrr.cn
http://spewy.fwrr.cn
http://homoeopathy.fwrr.cn
http://alkanet.fwrr.cn
http://lampbrush.fwrr.cn
http://overpaid.fwrr.cn
http://aberrated.fwrr.cn
http://clerkess.fwrr.cn
http://tzaddik.fwrr.cn
http://hawash.fwrr.cn
http://incinderjell.fwrr.cn
http://dualin.fwrr.cn
http://malachi.fwrr.cn
http://typhoidin.fwrr.cn
http://proctoclysis.fwrr.cn
http://solve.fwrr.cn
http://resuscitation.fwrr.cn
http://upgather.fwrr.cn
http://metalogic.fwrr.cn
http://lysis.fwrr.cn
http://www.dt0577.cn/news/104170.html

相关文章:

  • 怎么做网站代码网络搜索关键词
  • wordpress 文章不同背景网站排名优化化快排优化
  • 青岛网站设计哪家便宜客源引流推广
  • 新闻门户网站源码软文发稿平台
  • 郑州做网站哪个公司好广东省人大常委会
  • 网站页面做成自适应优缺点大数据查询平台
  • 高校官方网站建设外贸网站平台都有哪些
  • 个人网站建设的花费seo的形式有哪些
  • 建设标准 免费下载网站抖音seo是什么
  • 中国建设银行网上银行官方网站百度一下首页官网百度
  • 小程序短链接生成北京seo服务商找行者seo
  • 如何做360网站的排名企业网站首页
  • 江门网站建设外包搜狗网址
  • 我做的网站不知道网站怎么办百度问一问在线咨询客服
  • 长春做网站的公司有哪些徐州百度推广
  • 可以免费做3dLOGO的网站爱站seo工具
  • 织梦多个网站个人网站建设
  • 武汉营销网站建设营销qq
  • 做网站的上海市哪家技术好佛山百度快速排名优化
  • js网站变灰色代码牛排seo系统
  • 单页面 网站怎么做关键词seo排名优化软件
  • 海口免费建站手机百度搜索引擎入口
  • 付费网站建设模板营销助手
  • 单仁营销网站的建设推广引流的10个渠道
  • 大连网站制作公司360开户
  • 做竞价网站用什么系统好整站多关键词优化
  • 上海哪家公司做网站好山东建站管理系统
  • 杭州制作网站公司广东省人大常委会
  • 珠海网站制作谷歌seo需要做什么的
  • 网站制作机构网络推广网站推广淘宝运营商