如何将react-native版本从0.68.0升级到最新版本0.69.1?我试过了,但是出错了 &



我试图将react原生版本从0.68.0升级到最新版本0.69.1,通过使用这个命令npx react-native upgrade,它抛出了一个错误下面是图片链接(错误)

https://drive.google.com/file/d/1nwKDW0r5-LrJhazqXJaBN70SzFg2fsXY/view?usp=sharing

"dependencies": {
"@react-native-async-storage/async-storage": "^1.17.7",
"@react-navigation/native": "^6.0.11",
"@react-navigation/native-stack": "^6.7.0",
"axios": "^0.27.2",
"react": "17.0.2",
"react-native": "0.68.0",
"react-native-bootsplash": "^4.2.3",
"react-native-camera": "^4.2.1",
"react-native-responsive-screen": "^1.4.2",
"react-native-safe-area-context": "^4.3.1",
"react-native-screens": "^3.15.0",
"react-native-svg": "^12.3.0",
"react-native-svg-transformer": "^1.0.0",
"react-native-toast-message": "^2.1.5",
"react-native-vector-icons": "^9.2.0",
"react-redux": "^8.0.2",
"redux-thunk": "^2.4.1"
},

请尝试以下步骤,也许可以。

——删除节点模块同时,进入IOS文件夹&删除pods文件夹&podfile.lock

——然后执行:npm安装,CD ios, pod安装,——然后做:npx react-native upgrade否则你也可以定义特定的版本,比如npx react-native upgrade 0.69

相关内容

  • 没有找到相关文章

最新更新