小编rea*_*ein的帖子

新的 React Native 项目的 podfile 无效

我刚刚创建了一个新的 React Native 项目,当我尝试pod installios目录中运行时,出现以下错误:

Invalid `Podfile` file: cannot load such file -- ./scripts/autolinking
Run Code Online (Sandbox Code Playgroud)

我没有使用 Expo 启动该项目,但看起来我的 Podfile 顶部有这一行:

require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
Run Code Online (Sandbox Code Playgroud)

有任何已知的修复方法吗?我不确定为什么世博会被包含在我的项目中。

javascript npm reactjs react-native expo

5
推荐指数
0
解决办法
281
查看次数

标签 统计

expo ×1

javascript ×1

npm ×1

react-native ×1

reactjs ×1