首页 文章

未安装'expo' / 'react-native' / 'react-native-render-html' / 'react-navigation'依赖项

提问于
浏览
1
watchman watch-del-all && rm -rf node_modules/ && yarn cache clean && yarn install

我尝试了很多次重新安装这些依赖项,但每次运行时都是如此

exp start -c

我有以下警告

01:22:43 [exp] Warning: 'expo' dependency is not installed.
01:22:43 [exp] Warning: 'react-native' dependency is not installed.
01:22:43 [exp] Warning: 'react-native-render-html' dependency is not installed.

这是我的package.json

{
  "name": "Real300",
  "version": "0.7.2",
  "private": true,
  "devDependencies": {
    "babel-cli": "^6.26.0",
    "babel-preset-flow": "^6.23.0",
    "flow-bin": "^0.58.0",
    "flow-remove-types": "^1.2.3",
    "jest-expo": "^26.0.0",
    "react-test-renderer": "16.0.0"
  },
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "test": "node node_modules/jest/bin/jest.js --watch",
    "prepublish": "yarn run build",
    "flow": "flow"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "@expo/samples": "2.1.1",
    "@expo/vector-icons": "^6.1.0",
    "buffer": "^5.0.8",
    "expo": "26.0.0",
    "global": "^4.3.2",
    "iconv-lite": "^0.4.19",
    "install": "^0.10.1",
    "native-base": "^2.3.2",
    "npm": "^5.5.1",
    "prop-types": "^15.6.0",
    "react": "16.3.0-alpha.1",
    "react-dom": "^16.0.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-26.0.0.tar.gz",
    "react-native-camera-roll-picker": "^1.2.3",
    "react-native-cli": "^2.0.1",
    "react-native-dimension": "^1.0.6",
    "react-native-easy-grid": "^0.1.15",
    "react-native-elements": "^0.17.0",
    "react-native-fs": "^2.8.5",
    "react-native-image-crop-picker": "^0.18.1",
    "react-native-image-picker": "^0.26.7",
    "react-native-material-cards": "^1.0.7",
    "react-native-material-ui": "^1.14.0",
    "react-native-navigation": "^1.1.257",
    "react-native-render-html": "^3.7.0",
    "react-native-router-flux": "4.0.0-beta.22",
    "react-native-sglistview": "^0.4.3",
    "react-native-swiper": "^1.5.13",
    "react-native-tab-view": "0.0.70",
    "react-native-viewpager": "^0.2.13",
    "react-navigation": "^1.5.8",
    "stream": "0.0.2",
    "sudo": "^1.0.3",
    "tcomb-form-native": "^0.6.11"
  }
}

我的项目已经推出了世博会套件,我正在按照弹出屏幕的说明进行操作 . 在弹射之前它工作正常,但现在我不能让我的代码运行 .

我在Xcode中构建我的代码并且它成功了 . 我可以运行模拟器,但我什么都看不到它,只是白色的屏幕 . 期待我底部有一个红色的 Banner ,上面有“解除”“重新加载”“复制”“更多信息” . 我尝试复制,但没有任何东西进入我的剪贴板 .

我弹出的回购是:1 . npm run eject 2.选择expoKit 3.等待它弹出4.更新expo sdk到26 5.更改本地响应expo fork 6. pod install

我错过了什么?

1 回答

  • 1

    案件结案 .

    我必须更新纱线到最新版本和npm不会工作 .

    将纱线更新到1.6后,现在一切都很好 .

相关问题