expo-env-info is a CLI tool packaged as an npm module that collects detailed environment diagnostics for Expo projects – including OS versions, Node.js, npm/yarn, Expo CLI, Android/iOS SDK versions, and system-level dependencies – to help developers and maintainers triage issues quickly on GitHub. Current stable version is 2.0.14, released as part of the Expo monorepo with monthly release cadence. Unlike generic environment reporters, it is tailored specifically to Expo's build pipeline requirements, detecting common misconfigurations like missing Java, incorrect Android SDK paths, or deprecated package managers.
npm install expo-env-infoNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to programmatically collect environment diagnostics in an Expo project by calling `getCurrentEnvInfo()` and logging the result.
Use Node.js 12.20.0+ or 14.13.1+ (semver range ^12.20.0 || ^14.13.1 || >=16.0.0)
Install `expo-cli` instead of `exp`. The tool will adapt in future versions.
Ensure an Expo project is initialized (`expo init`) before running the diagnostics to get complete output.
Set ANDROID_HOME to your Android SDK location (e.g., `C:\Users\username\AppData\Local\Android\Sdk`) in system environment variables.
Use `npx expo-env-info --help` to see updated options. The output is currently being revamped.
Run `npx expo-env-info` instead of `node -e "require('expo-env-info')"`. Or install as a dev dependency: `npm install --save-dev expo-env-info`Install Java JDK (8 or 11) and add it to PATH. On macOS: `brew install openjdk@11`; on Windows: download from Oracle.
No dependency data recorded yet.