리액트 네이티브(React Native) react-native-community/cli doctor
리액트 네이티브(React Native)
cli doctor 로 이슈 체크하기
react-native-community/cli doctor
PS C:\dev\app> npx @react-native-community/cli doctor
Common
✓ Node.js - Required to execute JavaScript code
✖ yarn - Required to install NPM dependencies
- Version found: N/A
- Version supported: >= 1.10.x
● Metro - Metro Bundler is not running
Android
✖ Adb - No devices and/or emulators connected. Please create emulator with Android Studio or connect Android device.
✓ JDK - Required to compile Java code
✓ Android Studio - Required for building and installing your app on Android
✓ ANDROID_HOME - Environment variable that points to your Android SDK installation
✓ Gradlew - Build tool required for Android builds
✖ Android SDK - Required for building and installing your app on Android
- Versions found: 30.0.3, 33.0.0, 35.0.0
- Version supported: 34.0.034.0.0
Errors: 3
Warnings: 1
Usage
› Press f to try to fix issues.
› Press e to try to fix errors.
› Press w to try to fix warnings.
› Press Enter to exit.
>> f (선택)
Attempting to fix 4 issues...
Common
✖ yarn
Read more about how to download yarn at https://yarnpkg.com/docs/install
✖ Metro
Could not start the bundler. Please run "npx react-native start" command manually.
Android
✖ Adb
√ Select the device / emulator you want to use » Emulator Pixel_8_Pro_API_35 (disconnected)
✔ Adb
✔ Android SDK configured. You might need to restart your PC for all changes to take effect.
PS C:\dev\app> npx @react-native-community/cli doctor
Common
✓ Node.js - Required to execute JavaScript code
✓ yarn - Required to install NPM dependencies
● Metro - Metro Bundler is not running
Android
✓ Adb - Required to verify if the android device is attached correctly
✓ JDK - Required to compile Java code
✓ Android Studio - Required for building and installing your app on Android
✓ ANDROID_HOME - Environment variable that points to your Android SDK installation
✓ Gradlew - Build tool required for Android builds
✖ Android SDK - Required for building and installing your app on Android
- Versions found: 30.0.3, 33.0.0, 35.0.0
- Version supported: 34.0.034.0.0
Errors: 1
Warnings: 1
Usage
› Press f to try to fix issues.
› Press e to try to fix errors.
› Press w to try to fix warnings.
› Press Enter to exit.
>>> f (선택)
Attempting to fix 2 issues...
Common
✖ Metro
Could not start the bundler. Please run "npx react-native start" command manually.
Android
✔ Android SDK configured. You might need to restart your PC for all changes to take effect.
PS C:\dev\app>