前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >- `Yoga (= 0.44.0.React)` required by `React/Core (0.44.0)`

- `Yoga (= 0.44.0.React)` required by `React/Core (0.44.0)`

作者头像
星宇大前端
发布2019-01-15 15:07:11
7120
发布2019-01-15 15:07:11
举报
文章被收录于专栏:大宇笔记大宇笔记

bug出现环境背景

使用Cocospod安装RN的时候,报错

bug分析

[!] Unable to satisfy the following requirements:

- `Yoga (= 0.44.0.React)` required by `React/Core (0.44.0)`

None of your spec sources contain a spec satisfying the dependency: `Yoga (= 0.44.0.React)`.

You have either:

 * out-of-date source repos which you can update with `pod repo update`.

 * mistyped the name or version.

 * not added the source repo that hosts the Podspec to your Podfile.

Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.

分析可知React/core 依赖于Yoga所以咱应该使用pod添加Yoga,那么Yaga在什么目录下呢。

如果你已经使用nmp下载RN的Modules,你可以搜到Yoga的目录

bug解决办法

安装依赖包yoga

path为上图中路径

pod 'Yoga',  :path => ‘../node_modules/react-native/ReactCommon/yoga'

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2017年07月24日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • bug出现环境背景
  • bug分析
  • bug解决办法
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档