React native 反应本机版本不匹配,可以';在Xcode中重建

React native 反应本机版本不匹配,可以';在Xcode中重建,react-native,React Native,运行react native run ios(模拟器)时,我收到以下错误(模拟器中的react native错误消息): 请发现您的项目中有两个package.json文件,请删除不需要的文件,您的问题将得到解决。转到项目目录,运行killall node-9,然后使用react native start重新启动服务器 重新加载应用程序。只需在终端中关闭捆绑程序,然后重新构建即可 console.error: "React Native version mismatch. JavaScript

运行
react native run ios
(模拟器)时,我收到以下错误(模拟器中的react native错误消息):


请发现您的项目中有两个package.json文件,请删除不需要的文件,您的问题将得到解决。

转到项目目录,运行
killall node-9
,然后使用
react native start
重新启动服务器


重新加载应用程序。

只需在终端中关闭捆绑程序,然后重新构建即可
console.error: "React Native version mismatch.

JavaScript version: 0.61.5
Native version: 0.60.3

Make sure that you have rebuilt the native code. If the problem persists try clearing the Watchman and packager caches with `watchman watch-del-all && react-native start --reset-cache`."

_construct
    construct.js:30:26
Wrapper
    wrapNativeSuper.js:26:23
SyntheticError
    index.bundle?platform=ios&dev=true&minify=false:28736:111
reactConsoleErrorHandler
    ExceptionsManager.js:135:52
checkVersions
    ReactNativeVersionCheck.js:31:6
<global>
    checkNativeVersion.js:17
loadModuleImplementation
    require.js:322:6
<global>
    InitializeCore.js:42:9
loadModuleImplementation
    require.js:322:6
guardedLoadModule
    require.js:201:45
global code
    index.bundle?platform=ios&dev=true&minify=false:149289:4
"dependencies": {
    "@babel/plugin-proposal-decorators": "^7.7.4",
    "@react-native-community/masked-view": "^0.1.5",
    "class-transformer": "^0.2.3",
    "fs": "0.0.1-security",
    "moment": "^2.24.0",
    "path": "^0.12.7",
    "react": "16.9.0",
    "react-native": "0.61.5",
    "react-native-dotenv": "^0.2.0",
    "react-native-firebase": "^5.6.0",
    "react-native-gesture-handler": "^1.5.3",
    "react-native-launch-navigator": "^1.0.6",
    "react-native-safe-area-context": "^0.6.2",
    "react-native-sms": "^1.10.0",
    "react-navigation": "^4.0.10",
    "react-navigation-stack": "^2.0.10",
    "rxjs": "^6.5.4",
    "serializr": "^1.5.4"
},
"devDependencies": {
    "@babel/core": "^7.6.2",
    "@babel/runtime": "^7.6.2",
    "@react-native-community/eslint-config": "^0.0.5",
    "@types/jest": "^24.0.24",
    "@types/react-native": "^0.60.25",
    "@types/react-test-renderer": "16.9.1",
    "@typescript-eslint/eslint-plugin": "^2.12.0",
    "@typescript-eslint/parser": "^2.12.0",
    "babel-jest": "^24.9.0",
    "eslint": "^6.5.1",
    "jest": "^24.9.0",
    "metro-react-native-babel-preset": "^0.56.0",
    "react-test-renderer": "16.9.0",
    "typescript": "^3.7.3"
}