# Claude-Flow Troubleshooting Guide This directory contains comprehensive troubleshooting documentation for common issues and their solutions. ## ๐Ÿ“‹ Available Guides ### [NPX Cache Conflicts](./npx-cache-conflicts.md) **Issue**: ENOTEMPTY errors when running multiple claude-flow instances concurrently **Solution**: Automatic per-process cache isolation (v2.0.0-alpha.17+) **Symptoms**: ``` npm error code ENOTEMPTY npm error syscall rename npm error ENOTEMPTY: directory not empty, rename '[source]' -> '[dest]' ``` ## ๐Ÿš€ Quick Diagnosis ### Common Error Patterns | Error Pattern | Guide | Fix | |---------------|-------|-----| | `ENOTEMPTY: directory not empty` | [NPX Cache Conflicts](./npx-cache-conflicts.md) | Upgrade to alpha.17+ or use isolated cache | | `npm ERR! code ENOTEMPTY` | [NPX Cache Conflicts](./npx-cache-conflicts.md) | Per-process cache isolation | ### Environment Issues **Multiple concurrent operations failing?** โ†’ See [NPX Cache Conflicts](./npx-cache-conflicts.md) **Swarm operations not working?** โ†’ Check for ENOTEMPTY errors in [NPX Cache Conflicts](./npx-cache-conflicts.md) **Batch initialization failing?** โ†’ Review [NPX Cache Conflicts](./npx-cache-conflicts.md) for concurrent operation fixes ## ๐Ÿ”ง General Troubleshooting Steps 1. **Check your version**: Ensure you're using the latest alpha release ```bash npx claude-flow@alpha --version ``` 2. **Clear NPX cache** (if using older versions): ```bash npm cache clean --force rm -rf ~/.npm/_npx ``` 3. **Run diagnostics**: ```bash npx claude-flow@alpha init --dry-run ``` 4. **Test concurrent safety** (alpha.17+): ```bash # Run included test suites node test/npx-cache-fix-test.js node test/npx-isolation-integration-test.js ``` ## ๐Ÿ“ž Getting Help If you don't find your issue here: 1. **Search existing issues**: [GitHub Issues](https://github.com/ruvnet/claude-flow/issues) 2. **Check the logs**: Look for specific error patterns in the troubleshooting guides 3. **Create a new issue**: Include error messages and steps to reproduce ## ๐Ÿ”„ Version-Specific Notes ### v2.0.0-alpha.17+ - โœ… NPX cache conflicts resolved with automatic isolation - โœ… True parallel execution maintained - โœ… Zero performance overhead ### Earlier versions - โš ๏ธ May experience ENOTEMPTY errors with concurrent operations - ๐Ÿ”ง Use workarounds from [NPX Cache Conflicts](./npx-cache-conflicts.md) ## ๐Ÿงช Testing Your Fix After applying any fixes, verify with: ```bash # Basic functionality npx claude-flow@alpha init --minimal --force # Concurrent safety (alpha.17+) node test/npx-cache-fix-test.js ``` ## ๐Ÿ“š Additional Resources - [Main Documentation](../README.md) - [CLI Reference](../cli-reference.md) - [GitHub Issues](https://github.com/ruvnet/claude-flow/issues) - [Alpha Release Notes](../../CHANGELOG.md)