Assuming you are on a proper OS, it comes with your distribution, e.g. via Ubuntu it's just
$ apt install joe
And it's ready (obviously you might want to configure it differently than the default).