Setting up Habitica Locally on MacOS

==Install Build Tools==
Command-line tools such as make, gcc, and tar will be used by software that you will be installing in later steps on this page. To ensure you have them available, install them using xcode-select --install. Instructions are available at How to Install Command Line Tools in Mac OS X (Without Xcode).
It is possible that the Command Line Tools are not enough and that a full installation of Xcode will be needed. If you think that might be the case and are not sure how to proceed, install Xcode.app from the App Store or follow the instructions here: https://developer.apple.com/library/content/technotes/tn2339/_index.html
==Install Node and NPM==
This section takes you through the process of installing node and npm.
Note that the sample command below is for reference only and might not contain the correct version of npm so be sure to adjust the command as needed before you run it. The versions that must be used are .
#Check that inappropriate versions of node and npm are not installed:node --version; npm --version
#*If that command shows that node is not installed, proceed to the next step.
#*If it shows that you have a version of node that is less than the required version, uninstall it.
#Install node using the MacOS installer from NodeJS Downloads. Ensure you install the correct version as listed above.
#Check that you installed node successfully and that it is the correct version:node --version
#Installing node also installs npm. Check that that has been done and that the version is correct:npm --version
#*If you have any other version of npm, upgrade or downgrade it to the correct version. For example, if npm 6 needed to be installed:sudo npm install -g npm@6
#*Re-check the version (npm --version). If npm has not updated and/or changed version title, perform any other work required to make the version correct. (There are instances where the change does not show, but the program will still run with the npm version that was installed when node was installed.)
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.
You might see the error ld: library not found for -lcrypto as it seems to be common for installs on MacOS. Unfortunately, we don't know how to fix that at the moment. If you find out, feel free to edit this page! 
zh:在MacOS本地搭建Habitica
Category:Contributing