이전에 글로벌 react-native-cli패키지를 설치한 경우 예상치 못한 문제가 발생할 수 있으므로 제거하세요.
npm uninstall -g react-native-cli @react-native-community/cli
npx @react-native-community/cli@latest init AwesomeProject
iOS에 문제가 있는 경우 다음을 실행하여 종속성을 다시 설치해 보세요.
cd ios // ios폴더 로 이동합니다.
bundle install // Bundler를 설치
bundle exec pod install // CocoaPods가 관리하는 iOS 종속성을 설치합니다.
npm start
npm run android
cd/ios pod install npm run ios