在ios模拟器上运行我的应用程序时,出现以下错误This version of the Expo app is out of date. Uninstall the app and run again to upgrade.
这是我尝试升级expo-cli但未成功的方式
npm update -g
yarn add global expo-cli
npm uninstall expo-cli
npm cache clean --force
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-simulator,而在ios模拟器上的错误消息为there was a problem loading the requested app. The experience you requested requires a newer version of the Expo Client app.
答案 0 :(得分:5)
问题与iOS模拟器/设备上的应用程序过时并且与您正在运行的当前版本的Expo不兼容有关。
从iOS模拟器中删除Expo应用,它应该可以运行,或者如果您在设备上,则可以安装最新更新
https://github.com/expo/expo/issues/1595
打开模拟器的一种方法是打开Erase All Content and Settings
。然后重新运行npm start,Expo App将再次安装在此设备模拟器上。
答案 1 :(得分:3)
自制程序更新使我的人生陷入困境!
brew upgrade node
答案 2 :(得分:2)
请尝试以下操作:
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
让我知道这是否适合您