Analyze Command
The defaultnpx depfixer command runs a smart analysis that scans your project and offers to fix any issues found.
Usage
Options
| Option | Description |
|---|---|
--path <dir> | Project directory (default: current) |
--json | Output as JSON |
--ci | CI mode with exit codes |
How It Works
1. Free Audit
First, DepFixer performs a free audit showing your health score and issues:2. Unlock Prompt
A cost box shows the credit cost:3. Full Solution (After Payment)
Once paid, you see the complete fix with recommended versions:Issue Types Detected
| Type | Description |
|---|---|
| Peer Dependency Conflict | Package requires a different version of another package |
| Missing Peer Dependency | Required peer dependency not installed |
| Version Mismatch | Packages in same ecosystem have incompatible versions |
| Deprecated Package | Package is deprecated, replacement available |
| Framework Incompatibility | Package version incompatible with your framework |
JSON Output
CI Mode
DEPFIXER_TOKEN environment variable:
0- No critical/high issues1- Critical or high issues found2- Error (auth, network)
Audit vs Full Mode
| Feature | Audit (Free) | Full (Paid) |
|---|---|---|
| Health score | ✓ | ✓ |
| Issue count | ✓ | ✓ |
| Severity breakdown | ✓ | ✓ |
| Package names | Limited | ✓ |
| Recommended versions | ✗ | ✓ |
| Apply fixes | ✗ | ✓ |