java世博会,反应原生失去的世博会
我用react-init創(chuàng)建的我的RN項(xiàng)目工作正常,直到我做 npm install 才能讓 react-native-elements 與 react-native-vector-icons 一起工作 . 我無(wú)法鏈接,它說(shuō)我有反應(yīng)本地而不是react-native-cli . 所以我卸載并反應(yīng)原生并全局安裝cli .
現(xiàn)在 npm start 告訴我,我有"The Expo SDK requires Expo to run" .
在ExpoKit instructions中它說(shuō):打開(kāi)項(xiàng)目時(shí),Android Studio可能會(huì)提示您升級(jí)Gradle或其他構(gòu)建工具的版本,但不要這樣做,因?yàn)槟赡軙?huì)得到意想不到的結(jié)果 . ExpoKit始終附帶所有構(gòu)建工具的最新支持版本 .
顯然我沒(méi)有聽(tīng)從那個(gè)建議,這是我的懲罰 . 但我該怎么辦呢 . 我的項(xiàng)目非常復(fù)雜 .
這是有問(wèn)題的 projects.json 和它的前版本 . 有什么辦法可以回滾到我的工作安裝嗎?
{
"name": "noam",
"version": "0.0.1",
"private": true,
"main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
"scripts": {
"start": "react-native-scripts start",
"eject": "react-native-scripts eject",
"android": "react-native-scripts android",
"ios": "react-native-scripts ios",
"test": "jest"
},
"dependencies": {
"eslint": "^4.19.1",
"expo": "^27.0.0",
"jsonloader": "^1.0.1",
"object-path": "^0.11.4",
"react": "16.3.1",
"react-native": "0.55.3",
"react-native-action-bar": "^2.0.5",
"react-native-bluetooth-status": "^1.1.3",
"react-native-checkbox": "^2.0.0",
"react-native-cli": "^2.0.1",
"react-native-collapsible": "^0.11.2",
"react-native-drawer-layout": "^2.0.0",
"react-native-elements": "^0.19.1",
"react-native-exit-app": "^1.0.0",
"react-native-material-dropdown": "^0.11.1",
"react-native-scripts": "^1.14.1",
"react-native-simple-radio-button": "^2.7.1",
"react-native-tab-view": "0.0.77",
"react-native-vector-icons": "^4.6.0",
"react-navigation": "^1.5.11",
"rn-stack-router": "^1.0.0"
},
"devDependencies": {
"babel-eslint": "^8.2.3",
"babel-jest": "22.4.3",
"babel-preset-react-native": "4.0.0",
"eslint-config-airbnb": "^16.1.0",
"eslint-plugin-import": "^2.11.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.8.2",
"is-arrayish": "^0.3.1",
"jest": "22.4.3",
"react-test-renderer": "16.3.1"
},
"jest": {
"preset": "react-native"
},
"rnpm": {
"assets": ["./assets/fonts/"]
}
}
舊版本已插入第23行:
"react-native-cli": "^2.0.1",
"react-native-scripts": "^1.14.1",
"babel-eslint": "^8.2.3",
新聞:如果我做了 yarn install 然后 yarn start 在loooooong等待之后"creating package..."
那么為什么會(huì)這樣呢? npm的版本問(wèn)題?
總結(jié)
以上是生活随笔為你收集整理的java世博会,反应原生失去的世博会的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: php asp 语法,ASP 语法
- 下一篇: 扑克牌跑得快玩法介绍