use below two links to download,
https://nodejs.org/en/download/
https://git-scm.com/download/mac
after installation, open the terminal on Mac,
Alright, we are half way through this, now, create a folder called blog somewhere on the Mac.
Go to that folder on your terminal by, cd 'folder structure', then type in
npm install hexo -g
After this, type in hexo -v to check installation
Then type in below command in orders one by one, the local server will start
npm install, hexo g, hexo s
if you have problem installing those, type use sudo in front of these commands.