Failed to run 'elixir' command error in vs code

Installing it globally worked for me on a M1 mac even with asdf installed via homebrew.