expo 已过期卸载并再次运行以升级

新手上路,请多包涵

在 ios 模拟器上运行我的应用程序时,出现以下错误 This version of the Expo app is out of date. Uninstall the app and run again to upgrade.

这是我尝试升级 expo-cli 但未成功的方式

  1. npm update -g

  2. yarn add global expo-cli

  3. npm uninstall expo-cli

  4. npm cache clean --force

  5. yarn add global expo-cli

这是 app.json

 "expo": {
    "name": "firebase-reacte-native",
    "slug": "firebase-reacte-native",
    "privacy": "public",
    "sdkVersion": "32.0.0",
    "platforms": [
    ....

这是 package.json

 "dependencies": {
    "expo": "^32.0.0",
    "react": "16.5.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz"
  }

我想要做的就是在 ios 模拟器上运行没有错误消息的 ios 模拟器 there was a problem loading the requested app. The experience you requested requires a newer version of the Expo Client app.

原文由 user10398929 发布,翻译遵循 CC BY-SA 4.0 许可协议

阅读 783
2 个回答

问题与 iOS 模拟器/设备上的应用程序有关,该应用程序已过时并且与您运行的当前版本的 Expo 不兼容。

从 iOS 模拟器中删除 Expo 应用程序,它应该可以工作,或者如果你在设备上安装最新的更新

https://github.com/expo/expo/issues/1595

一种方法是打开模拟器是 Erase All Content and Settings 。然后重新运行 npm start ,Expo App 将再次安装到这个设备模拟器上。

在此处输入图像描述

原文由 Andrew 发布,翻译遵循 CC BY-SA 4.0 许可协议

请试试这个:

 1.- npm cache clean -f
2.- yarn upgrade
3.- npm upgrade
3.- npm install

如果这不起作用,请尝试编辑 package.json

 {
  "react-native": "https://github.com/expo/react-native/archive/sdk-34.0.0.tar.gz",
  "expo": "^34.0.1",
  "react": "16.8.3"
}

然后

npm install

让我知道这是否适合你

原文由 Kike Gamboa 发布,翻译遵循 CC BY-SA 4.0 许可协议

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题