v1.0.0
Troubleshooting
Common issues and their solutions when working with LastMile.
Common Issues
Command not found: lastmile
The CLI is not in your PATH or not installed globally.
Solution:
$# Reinstall globally
$npm install -g @lastmile/cli
$# Or use npx
$npx @lastmile/cli scan
Authentication failed
Your token has expired or is invalid.
Solution:
$# Re-authenticate
$lastmile logout
$lastmile login
Analyze takes too long
Large codebases can take longer to analyze. LastMile automatically excludes common directories like node_modules and .git.
Solution:
Run analyze with verbose output to see progress:
$lastmile analyze --verbose
Fix command requires authentication
The lastmile fix command requires authentication to access AI-powered fixes and templates.
Solution:
$# Login to LastMile
$lastmile login
Note: The lastmile analyze command works without authentication on the free tier.
Debug Mode
Enable verbose logging to diagnose issues:
TERMINAL
$lastmile analyze --verbose