create-react-native-app
명령을 사용하여 한 달 전에 생성 된 React Native 프로젝트가 있습니다.React Native package.json versions
{
"name": "TestApp2",
"version": "0.1.0",
"private": true,
"devDependencies": {
"react-native-scripts": "1.1.0",
"jest-expo": "~19.0.0",
"react-test-renderer": "16.0.0-alpha.12"
},
"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": "node node_modules/jest/bin/jest.js --watch"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"expo": "^19.0.0",
"react": "16.0.0-alpha.12",
"react-native": "^0.46.1"
}
}
의 package.json
은 다음과 같다 :
package.json
내용
{
"name": "NewApp",
"version": "0.1.0",
"private": true,
"devDependencies": {
"react-native-scripts": "1.5.0",
"jest-expo": "^21.0.2",
"react-test-renderer": "16.0.0-alpha.12"
},
"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": "node node_modules/jest/bin/jest.js --watch"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"expo": "^21.0.0",
"react": "16.0.0-alpha.12",
"react-native": "^0.48.4"
}
}
react-native-scripts
, jest-expo
및 expo
의 버전이 있습니다 다른. 내 질문은 어떻게 버전을 업그레이드 할 수 있습니까? 방금 버전 번호를 수동으로 변경해야합니까?
$ npm install -g react-native-git-upgrade
$ react-native-git-upgrade
을하지만 그것은 버전을 업그레이드하지 않습니다.
는 또한 시도 :
$ npm update
$ react-native upgrade
그러나 두 명령은 버전이 업데이트되지 않습니다.
'npm update'가'package.json'에 지정된 버전을 업그레이드하게하는 또 다른 방법은 무엇입니까? – Raptor