You may want to install Elixir using Homebrew:
brew install elixir
In case you need to get aquatinted with Homebrew, visit the https://brew.sh. There, you’ll see the installation instruction, e.g.:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"