Setting up Habitica Locally on MacOS

Install Build Tools
''ALYS TODO: This step might not be necessary but recent contributors using Windows installs have indicated that it might be needed for some of Habitica's dependencies to be installed (e.g., bcrypt). If you have feedback about this, please post to the Aspiring Blacksmith's guild.''

Install MongoDB

 * 1) Install MongoDB in the appropriate way for MacOS. Note:
 * 2) * It is recommended that, where possible, you follow MongoDB's official instructions.
 * 3) * Official instructions for MacOS: Install MongoDB Community Edition version 3.4 on MacOS
 * 4) Start the MongoDB server if it was not started during the installation process (the instructions above should tell you how).
 * 1) Start the MongoDB server if it was not started during the installation process (the instructions above should tell you how).

ALYS TODO: Deal with this feedback: 'For the Mongo part, the link "Install MongoDB Community Edition on OS X" goes directly to the 3.6 version. I could imagine that some people would go right down to starting the steps without reading and realizing that the page is on the 3.6 version. There is a link for 3.4 version: https://docs.mongodb.com/v3.4/tutorial/install-mongodb-on-os-x/ but my macOS didn't recognize the tar command needed in one of the steps for the manual install part. They also provide the option of installing through homebrew, but the command provided installs the most recent version. I used the help of this answer: https://stackoverflow.com/a/47449979/6286749 to get 3.4 working on my and my group member's machine.'

Install Node and NPM
This section takes you through the process of installing node and npm.
 * 1) Check that inappropriate versions of node and npm are not installed:


 * 1) *If that command shows that node is not installed, proceed to the next step.
 * 2) *If it shows that you have a version of node that is less than the required version, uninstall it.
 * 3) Install node using the MacOS installer from the (NodeJS Downloads page.
 * 4) Check that you installed node successfully and that it is the correct version:

_[Can a MacOS user please tell us whether it's called node or nodejs on your system? We can then simplify these instructions. Either edit this section to change/remove all references to the name that isn't used, or post to the Aspiring Blacksmiths guild.]
 * 1) *If that command tells you that  is not installed, your executable is probably called  . Check its version, and if it is correct, link it to the name  :
 * 1) Installing node also installs npm. Check that that has been done and that the version is correct:


 * 1) *If you have any other version of npm, upgrade it to the correct version. For example, if npm 5 needs to be installed:

Install Other Generic Requirements
Install some npm packages globally: sudo npm install -g mocha

Install Habitica-Specific Requirements

 * 1) Install the Habitica-specific npm and bower packages: npm install
 * 2) *If you see errors related to,  , or  , it is possible that your system does not have tools for building software from source code. If installing those programs seems necessary, consult MacOS documentation to find out how. After installing them, open a new terminal session and run   and the rest of the Habitica installation process there to use your system's new environment (  will probably still fail in your original terminal session). Be sure to   to the same directory you were in when you began the   command.
 * 3) *If "npm install" fails for other reasons, try rerunning it again two or three times in case the failures are from timeouts.
 * 4) *If you see a "new worker : fork" error, empty your Trash. This might be difficult if node is holding on to a file, so use the "rm" command to delete any items remaining in Trash.