Node.js Version Issues
React Doctor requires specific Node.js versions for lint checks.Required Version
Oxlint (the linter used by React Doctor) requires:Node.js ^20.19.0 or >=22.12.0
Unsupported Node.js Version
If you see:Option 1: Upgrade Node.js
Option 2: Install via nvm (Recommended)
React Doctor can install a compatible Node.js version automatically:React Doctor will use Node 24 from nvm for lint checks while keeping your system Node.js version unchanged.
Option 3: Use npx with Matching Node
nvm Not Installed
If you don’t have nvm:Native Binding Error
If you see:Performance Issues
React Doctor can be slow on large codebases.Scan Takes Too Long
Use Diff Mode
Scan only changed files:Select Specific Project
In monorepos, scan one project:Disable Dead Code Detection
Dead code analysis is slow on large projects:react-doctor.config.json
Ignore Generated Files
Exclude large generated directories:react-doctor.config.json
Knip Hangs or Times Out
Dead code detection (via Knip) can stall on complex projects. Solution 1: Increase timeout in Knip config Createknip.json:
knip.json
Installation Issues
npx Command Not Found
npx comes with npm. Ensure Node.js is installed:
Permission Denied
On macOS/Linux:Slow Installation
React Doctor downloads dependencies on first run. Use-y to auto-accept:
Score Calculation Issues
Score Not Calculated
If you see:- No internet connection - React Doctor requires API access to calculate scores
- Firewall blocking - Corporate firewalls may block
react.doctorAPI - Using —offline flag - You explicitly disabled telemetry
- Connect to the internet
- Check firewall settings
- Remove
--offlineflag
React Doctor sends diagnostics (anonymized) to calculate accurate scores. No source code is transmitted.
Score Seems Wrong
Scores are based on unique rule violations, not total occurrences. Example:- 100 diagnostics from 5 unique rules = Score ~92
- 10 diagnostics from 10 unique rules = Score ~85
Score Doesn’t Improve After Fixes
If the score stays the same after fixes:- Verify fixes applied - Run with
--verboseto see remaining issues - Check suppressed rules - Suppressed rules still count toward total
- New issues introduced - Fixes may have created new violations
Configuration Issues
Config Not Loaded
React Doctor looks for:react-doctor.config.jsonin project rootreactDoctorkey inpackage.json
Invalid Config Format
Config must be valid JSON:react-doctor.config.json
Rules Still Appearing After Suppression
Ensure rule names match exactly:--verbose to see exact rule names:
Git and Diff Mode Issues
”Not a git repository”
Diff mode requires Git:No Changed Files Detected
If React Doctor says no changes:- Commit your changes - Git only detects committed changes
- Specify base branch -
npx react-doctor . --diff main - Check file types - Only
.ts,.tsx,.js,.jsxare scanned
Base Branch Not Found
React Doctor looks formain then master. If neither exists:
CI/CD Issues
GitHub Actions: fetch-depth Error
Diff mode needs Git history:CI Hangs or Times Out
Large codebases can exceed CI time limits: Solution 1: Use diff modeCI Fails with Exit Code 1
If you’re using--fail-on flag:
--fail-on flag.
Monorepo Issues
Workspaces Not Detected
React Doctor requires workspace config: npm/Yarn/pnpm:package.json
pnpm-workspace.yaml
Project Not Found
If--project fails:
Scanning Takes Too Long in Monorepo
Scan specific projects:Output and Display Issues
Colors Not Showing
Terminals without color support:Verbose Output Truncated
Full diagnostics are written to temp directory:JSON Output
For programmatic use:Coding Agent Integration Issues
Skill Not Recognized
Re-install the skill:Agent Doesn’t Run Automatically
Coding agents run React Doctor when:- You explicitly ask (“run react-doctor”)
- After completing React changes (if skill is installed)
Getting Help
If you’re still stuck:Check GitHub Issues
Search existing issues: github.com/millionco/react-doctor/issuesEnable Verbose Mode
Run with Debug Info
Open an Issue
Report bugs: github.com/millionco/react-doctor/issues/new Include:- React Doctor version (
npx react-doctor --version) - Node.js version (
node --version) - Operating system
- Full error message
- Command you ran
Most issues are Node.js version mismatches or Git configuration problems. Check those first!