Fixing Anchor Version Conflicts When Using avm

Anchor has two common installation paths: installing anchor-cli directly with Cargo, or installing avm (Anchor Version Manager) and letting it manage your Anchor versions. When both are present, your shell can end up using the wrong one. This often shows up when you install Anchor 0.31.1 with avm, but anchor –version still prints 0.30.1. Why this happens When you run a command, your shell looks through the directories listed in…