Common errors, their causes, and step-by-step solutions. Use this guide to quickly resolve issues.
Cause: Outdated Node.js version
Solution:
# Check current version
node --version
# Upgrade Node.js to v20.10.0 or later
# Visit https://nodejs.org or use nvm:
nvm install 20
nvm use 20Cause: Insufficient permissions for installation directory
Solution:
# Option 1: Choose different directory
npx bmad-method install --directory ./my-project
# Option 2: Fix permissions (if appropriate)
chmod u+w /path/to/directory
# Option 3: Use sudo (not recommended)
sudo npx bmad-method installCause: Specified directory doesn't exist
Solution:
# Create directory first
mkdir -p ./my-project
cd ./my-project
# Then install
npx bmad-method installCause: PRD hasn't been created yet or wrong path in config
Solution:
# Option 1: Create PRD
*agent pm
*create-prd
# Option 2: Check config
# Edit .bmad-core/core-config.yaml
# Verify prdFile path is correctCause: Architecture not sharded or prdSharded set to true but directory missing
Solution:
# Option 1: Shard architecture
*agent po
*shard-doc
# Option 2: Disable sharding
# Edit .bmad-core/core-config.yaml
architecture:
architectureSharded: falseCause: Epic file naming doesn't match pattern in config
Solution:
# Option 1: Rename files to match pattern
# Pattern: epic-{n}*.md
# Rename: epic1.md → epic-1.md
# Option 2: Update pattern in config
# Edit .bmad-core/core-config.yaml
prd:
epicFilePattern: epic{n}*.md # Remove dashCause: File listed in devLoadAlwaysFiles doesn't exist
Solution:
# Option 1: Create missing file
# Create docs/architecture/coding-standards.md
# Option 2: Remove from config
# Edit .bmad-core/core-config.yaml
# Remove the file from devLoadAlwaysFiles arrayCause: Missing * prefix on commands
Solution:
# Wrong:
help
create-prd
# Correct:
*help
*create-prdCause: Command doesn't exist for this agent or typo
Solution:
# Check available commands
*help
# Verify agent loaded correctly
# Ensure you've loaded the correct agent fileCause: Task, template, or checklist file missing
Solution:
# Check file exists:
ls .bmad-core/tasks/
ls .bmad-core/templates/
ls .bmad-core/checklists/
# Re-install if files missing
npx bmad-method install --forceCause: PM expects project brief but it doesn't exist
Solution:
# Option 1: Create project brief first
*agent analyst
*create-project-brief
# Option 2: Skip project brief
# Continue without it - PM can work independentlyCause: Architect expects PRD but it doesn't exist
Solution:
# Create PRD first
*agent pm
*create-prd
# Then create architecture
*agent architect
*create-architectureCause: Document < 100 lines, not worth sharding
Solution:
# Disable sharding for this document
# Edit .bmad-core/core-config.yaml
prd:
prdSharded: falseCause: Template file missing from installation
Solution:
# Re-install BMad Method
npx bmad-method update --force
# Or check if template exists
ls .bmad-core/templates/prd-tmpl.yamlCause: Epic file doesn't exist or naming doesn't match pattern
Solution:
# Check epic files exist
ls docs/prd/
# Verify naming matches pattern (epic-{n}*.md)
# Ensure PRD is sharded
*agent po
*shard-docCause: Architecture not sharded or required sections missing
Solution:
# Shard architecture
*agent po
*shard-doc
# Verify sections exist
ls docs/architecture/
# Required sections for all stories:
# - tech-stack.md
# - unified-project-structure.md
# - coding-standards.md
# - testing-strategy.mdCause: Dev agent not following story-driven pattern
Solution:
# Remind Dev agent:
# "Story contains ALL context. Never load PRD or architecture directly."
# Verify story has complete Dev Notes section
# SM should include all needed context in storyCause: Quality standards too strict or implementation issues
Solution:
# Option 1: Review and adjust coding standards
# Edit docs/architecture/coding-standards.md
# Option 2: Address QA feedback systematically
*agent dev
*review-qa
# Option 3: Get stakeholder waiver (if appropriate)
*agent qa
*gate # Select WAIVED with justificationCause: Network issues or npm registry unavailable
Solution:
# Check internet connection
ping npmjs.org
# Try again later
npx bmad-method update-check
# Or skip check and update directly
npx bmad-method updateCause: Codebase too large (> 100k files)
Solution:
# Flatten specific directory
npx bmad-method flatten -i ./src -o src.xml
# Or exclude directories
# Create/update .gitignore with directories to skipCause: User skipped IDE selection during installation
Solution:
# Re-run installer and select IDEs
npx bmad-method install
# During installation, use SPACEBAR to select IDEsCause: Previous workflow step not completed
Solution:
# Identify missing artifact from error message
# Complete prerequisite step
# Example: Missing prd.md
*agent pm
*create-prd
# Then resume workflowCause: Agent file not found or not loaded properly
Solution:
# Verify agent file exists
ls .bmad-core/agents/
# Reload agent
*agent <agent-name>
# If still fails, re-install
npx bmad-method install --forceCause: Condition evaluated to false
Solution:
# Review workflow conditions
# Example: UX step skipped because no UI needed
# This is expected for backend-only projects
# If unexpected, check workflow definition
cat .bmad-core/workflows/<workflow-name>.yamlCause: Team bundle exceeds platform context limit
Solution:
# Option 1: Use smaller team
# team-fullstack → team-no-ui (if no UI needed)
# Option 2: Load individual agents
# Load agents one at a time as needed
# Option 3: Clear context between major phases
# Complete planning → clear context → load dev teamCause: Conversation too long, context window exceeded
Solution:
# Save work to files
*doc-out # Output document
# Start new conversation
# Load only needed agents for next phase
# Reference saved files as contextCause: Too many elicitation prompts
Solution:
# Use YOLO mode
*yolo
# Agent will generate without elicitation
# Or answer "1" (Proceed) for each promptCause: Very large codebase
Solution:
# Flatten only relevant directories
npx bmad-method flatten -i ./src -o src.xml
npx bmad-method flatten -i ./api -o api.xml
# Provide multiple context files to agentsCause: Existing code patterns not well documented
Solution:
# Use interactive brownfield story creation
*agent pm
*create-brownfield-story
# Answer agent's questions about integration
# Agent will gather context interactivelyCause: Insufficient safety checks
Solution:
# Add comprehensive tests
# Test existing functionality before and after changes
# Use feature flags
# Implement new code behind flag, enable gradually
# Create rollback plan
# Document in story how to undo changesIf installation is corrupted:
# 1. Backup customizations
cp .bmad-core/core-config.yaml ../core-config-backup.yaml
# 2. Remove BMad
rm -rf .bmad-core
# 3. Re-install
npx bmad-method install
# 4. Restore customizations
cp ../core-config-backup.yaml .bmad-core/core-config.yamlIf specific agent broken:
# Re-install specific files
npx bmad-method update --force
# Verify installation
npx bmad-method statusIf documents corrupted:
# Check git history
git log docs/
# Restore from backup
git checkout HEAD~1 docs/prd.md
# Re-generate if needed
*agent pm
*create-prd*help in any agent for commandsnpx bmad-method status for installation infocore-config.yaml settings match your structure