Tired of broken React Native environments? I built a CLI to fix that
If you have worked with React Native long enough, you know the drill. An environment that worked perfectly yesterday suddenly fails to build today because of a stale ANDROID_HOME , a mismatched JDK version, or CocoaPods fighting macOS system Ruby over file permissions. When onboarding new developers, this often turns into a wasted afternoon of troubleshooting instead of writing code. To solve…
If you have spent considerable time working with React Native, you are familiar with the routine. An environment that functioned flawlessly the previous day may suddenly fail to build today due to an outdated ANDROID_HOME, a mismatched JDK version, or conflicts between CocoaPods and macOS system Ruby over file permissions. Onboarding new developers frequently turns into a waste of an afternoon troubleshooting instead of coding.
To address this issue comprehensively, I created rn-env-doctor. What is rn-env-doctor? It is a zero-dependency command-line interface tool that evaluates your local development setup against the official React Native setup recommendations. It verifies the following: Node.js and Watchman, JDK 17, Android SDK elements (ANDROID_HOME, platform-tools, build-tools), Xcode and Command Line Tools (macOS), CocoaPods and Ruby environment (macOS).
Rather than merely displaying a red X, it identifies the specific misconfiguration and provides a straightforward, English-language remedy. Key Features:
- Zero Setup Overhead: No additional npm packages required; simply clone and execute.
- Safe by Default: No changes to your system occur without explicit confirmation; a read-only audit can also be performed.
- Actionable Diagnostics: Each failing check includes clear instructions on how to rectify the issue.
- Cross-Platform: Compatible with macOS, Linux, and Windows systems.
Quick Start: Run the tool directly from your terminal through the following steps:
1. Clone the repository: git clone https://github.com/Fs0ci3ty19/rn-env-doctor.git
2. Navigate into the directory: cd rn-env-doctor
3. Conduct a read-only audit: node index.js --check
Open Source & Feedback: The project is freely available and open source on GitHub: GitHub Repository: https://github.com/Fs0ci3ty19/rn-env-doctor. If you try it out, I would appreciate your feedback! Did it identify an issue in your setup, or is there an edge case it overlooked? Please share your insights in the comments or by opening an issue on GitHub.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.