'expo'/'react-native'/'react-native-render-html'/'react-navigation' 依赖未安装
'expo'/'react-native'/'react-native-render-html'/'react-navigation' dependency is not installed
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"
}
}
我的项目已使用 expo kit 弹出,我正在按照弹出屏幕的说明进行操作。它在弹出之前工作正常,但现在我不能让我的代码 运行.
我在 Xcode 中构建我的代码并且它是成功的。我可以 运行 模拟器,但我什么也看不到,只有白屏。预计我在底部有一个红色横幅,上面有 "dismiss""reload""copy""more info"。我尝试复制,但没有任何内容进入我的剪贴板。
我的弹射仓库是:
1. npm 运行 弹出
2.选择expoKit
3.等待弹出
4.更新expo sdk到26
5. 改变原生对 expo fork 的反应
6.吊舱安装
我是不是漏掉了什么?
案件结案。
我必须将 yarn 更新到最新版本,但 npm 无法正常工作。
更新 yarn 到 1.6 后,一切正常。
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"
}
}
我的项目已使用 expo kit 弹出,我正在按照弹出屏幕的说明进行操作。它在弹出之前工作正常,但现在我不能让我的代码 运行.
我在 Xcode 中构建我的代码并且它是成功的。我可以 运行 模拟器,但我什么也看不到,只有白屏。预计我在底部有一个红色横幅,上面有 "dismiss""reload""copy""more info"。我尝试复制,但没有任何内容进入我的剪贴板。
我的弹射仓库是: 1. npm 运行 弹出 2.选择expoKit 3.等待弹出 4.更新expo sdk到26 5. 改变原生对 expo fork 的反应 6.吊舱安装
我是不是漏掉了什么?
案件结案。
我必须将 yarn 更新到最新版本,但 npm 无法正常工作。
更新 yarn 到 1.6 后,一切正常。