【发布时间】:2020-10-24 17:28:00
【问题描述】:
我创建了一个 expo 项目,并尝试在 iOS 和 android 模拟器上运行它。在 android 模拟器上一切正常,但在 iOS 模拟器上却不行。我收到以下错误:
Error installing or running app. Error: ENOENT: no such file or directory, mkdir '/Users/.../.expo/ios-simulator-app-cache/Exponent-2.16.0.tar.app'
提前谢谢
【问题讨论】:
-
尝试以下命令:1.
killall node2.yarn startMetro 捆绑器无法在我的 8081 端口上运行。但通过这样做,它做到了。 -
感谢您的建议。我试过了,但是没有用。
-
可能有一些你没有正确安装的依赖。尝试以下操作:1.
killall node2.yarn(安装所有依赖项)3.yarn start -
我正在使用 npm。我尝试了等效的命令,但仍然无法正常工作。
-
你有 .watchmanconfig 文件吗?
标签: react-native expo ios-simulator