首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >不可能升级世博sdk版本

不可能升级世博sdk版本
EN

Stack Overflow用户
提问于 2022-11-28 11:36:51
回答 1查看 32关注 0票数 0

我有一个反应本地世博会的人,我正在测试它使用博览去在android手机。

但是现在我更新了movile应用程序,当我试图扫描QR代码来测试这个应用程序时,它告诉我,movile上的sdk expo只支持47、45和45 sdk版本,但是这个项目使用的是44 sdk版本。

在这个项目中,我使用了46 sdk版本的“expo升级”,但我得到了以下错误:

代码语言:javascript
运行
复制
┌─────────────────────────────────────────────────────────────────────────┐
│                                                                         │
│   There is a new version of expo-cli available (6.0.8).                 │
│   You are currently using expo-cli 5.1.3                                │
│   Install expo-cli globally using the package manager of your choice;   │
│   for example: `npm install -g expo-cli` to get the latest version      │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘
Warning! Your git working tree is dirty.
It's recommended to commit all your changes before proceeding, so you can revert the changes made by this command if necessary.

√ Would you like to proceed? ... yes

√ You are currently using SDK 44.0.0. Would you like to update to the latest version, 47.0.0? ... yes


× Failed to install expo package with error: yarnpkg exited with non-zero code: 1
yarnpkg exited with non-zero code: 1
Error: yarnpkg exited with non-zero code: 1
    at ChildProcess.completionListener (C:\Users\Bosatzu\AppData\Roaming\nvm\v14.15.1\node_modules\expo-cli\node_modules\@expo\spawn-async\src\spawnAsync.ts:65:13)
    at Object.onceWrapper (events.js:422:26)
    at ChildProcess.emit (events.js:315:20)
    at ChildProcess.cp.emit (C:\Users\Bosatzu\AppData\Roaming\nvm\v14.15.1\node_modules\expo-cli\node_modules\cross-spawn\lib\enoent.js:34:29)
    at maybeClose (internal/child_process.js:1048:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
    ...
    at Object.spawnAsync [as default] (C:\Users\Bosatzu\AppData\Roaming\nvm\v14.15.1\node_modules\expo-cli\node_modules\@expo\spawn-async\src\spawnAsync.ts:26:19)
    at YarnPackageManager._runAsync (C:\Users\Bosatzu\AppData\Roaming\nvm\v14.15.1\node_modules\expo-cli\node_modules\@expo\package-manager\src\NodePackageManagers.ts:309:31)
    at YarnPackageManager.addAsync (C:\Users\Bosatzu\AppData\Roaming\nvm\v14.15.1\node_modules\expo-cli\node_modules\@expo\package-manager\src\NodePackageManagers.ts:258:16)
    at upgradeAsync (C:\Users\Bosatzu\AppData\Roaming\nvm\v14.15.1\node_modules\expo-cli\src\commands\info\upgradeAsync.ts:496:7)
    at actionAsync (C:\Users\Bosatzu\AppData\Roaming\nvm\v14.15.1\node_modules\expo-cli\src\commands\info\upgradeAsync.ts:42:3)

我用的是windows 10。

这是package.json文件:

代码语言:javascript
运行
复制
{
  "scripts": {
    "start": "react-native start",
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "web": "expo start --web",
    "eject": "expo eject"
  },
  "dependencies": {
    "@fortawesome/fontawesome-svg-core": "^1.2.35",
    "@fortawesome/free-brands-svg-icons": "^5.15.3",
    "@fortawesome/free-regular-svg-icons": "^5.15.3",
    "@fortawesome/free-solid-svg-icons": "^5.15.3",
    "@fortawesome/react-native-fontawesome": "^0.2.6",
    "@gorhom/bottom-sheet": "^3.6.6",
    "@material-ui/core": "^4.12.2",
    "@react-native-async-storage/async-storage": "~1.15.0",
    "@react-native-community/datetimepicker": "4.0.0",
    "@react-native-community/masked-view": "^0.1.10",
    "@react-native-picker/picker": "2.2.1",
    "@react-navigation/material-bottom-tabs": "^5.3.15",
    "@react-navigation/material-top-tabs": "^6.0.4",
    "@react-navigation/native": "^5.9.4",
    "@react-navigation/stack": "^5.14.5",
    "axios": "^0.21.4",
    "core-js": "^3.20.3",
    "expo": "^44.0.0",
    "expo-checkbox": "~2.0.0",
    "expo-cli": "^5.1.3",
    "expo-dev-client": "^0.8.6",
    "expo-font": "~10.0.4",
    "expo-location": "~14.0.1",
    "expo-splash-screen": "~0.14.1",
    "expo-status-bar": "~1.2.0",
    "expo-updates": "^0.11.7",
    "moment": "^2.29.1",
    "native-base": "^3.1.0",
    "qrcode": "^1.5.0",
    "radio-buttons-react-native": "^1.0.4",
    "react": "17.0.1",
    "react-dom": "17.0.1",
    "react-native": "0.64.3",
    "react-native-air-progress-bar": "0.0.5",
    "react-native-backdrop": "^2.1.2",
    "react-native-count-to": "0.0.2",
    "react-native-countdown-component": "^2.7.1",
    "react-native-date-picker": "^4.1.1",
    "react-native-dialog": "^8.0.1",
    "react-native-gesture-handler": "^2.1.0",
    "react-native-hide-show-password-input": "^1.2.0",
    "react-native-ico": "^28.7.4",
    "react-native-ico-material-design": "^3.3.1",
    "react-native-loading-spinner-overlay": "^2.0.0",
    "react-native-maps": "0.29.4",
    "react-native-material-design": "^0.3.7",
    "react-native-modal-datetime-picker": "^13.0.0",
    "react-native-pager-view": "5.4.9",
    "react-native-paper": "^4.9.2",
    "react-native-propel-kit": "^1.0.1",
    "react-native-qrcode-svg": "^6.1.2",
    "react-native-reanimated": "^2.3.1",
    "react-native-safe-area-context": "^3.3.2",
    "react-native-screens": "^3.10.1",
    "react-native-snackbar": "^2.4.0",
    "react-native-snap-carousel": "^3.9.1",
    "react-native-stars": "^1.2.2",
    "react-native-svg": "^12.1.1",
    "react-native-tab-view": "^3.1.1",
    "react-native-unimodules": "~0.15.0",
    "react-native-vector-icons": "^8.1.0",
    "react-native-web": "0.17.1",
    "react-navigation-stack": "^2.10.4",
    "reanimated-bottom-sheet": "^1.0.0-alpha.22",
    "rn-qr-generator": "^1.2.0",
    "sentry-expo": "^4.0.5",
    "styled-components": "^5.3.1",
    "styled-system": "^5.1.5"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9"
  },
  "private": true,
  "name": "parking-app-front",
  "version": "1.0.0"
}

希望你能帮我解决这个问题

EN

回答 1

Stack Overflow用户

发布于 2022-11-28 11:55:46

您可以通过执行以下步骤来解决此问题:

node_modules.

  • run

  • 删除yarn.lockpackage-lock.jsonpackage-lock.json yarn install或运行yarn (如果您正在使用npm,您可以运行npm install.

  • if,所有这些步骤都运行良好,然后运行“世博升级”。

)

这样就行了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74600013

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档