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构建了我的代码,它成功了。我可以运行模拟器,但我什么也看不见,只有白色的屏幕。期望我有一个红色的旗帜在底部与那些“解散”“重新加载”“复制”“更多的信息”。我试着复制,但我的剪贴板上没有任何东西。
我弹出的回复是: 1. npm运行弹出2.选择expoKit 3.等待它弹出4.更新的世博sdk到26 5.将本机响应更改为世博叉6.荚安装
我错过了什么吗?
发布于 2018-04-20 02:08:49
案子结了。
我得把纱线更新到最新版本,npm就不行了。
在把纱线升级到1.6之后,现在一切都很好。
https://stackoverflow.com/questions/49895029
复制相似问题