You will need
git (optional), and
yarn (optional) to develop Node applications. I also use an optional package manager,
homebrew to install these tools.
To check whether you already have these tools, you can run:
If these commands each output a version number, you already have the tools installed and you are ready to go.
Homebrew is an extremely useful package manager for Mac. To install it, run the following:
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install Node.js if you don’t already have it. On Mac, you can easily install it using the Homebrew package manager (or from the project website):
$ brew install node
Git is a version control system that allows you to store your code in a centralized repository that tracks your changes and can easily be backed up remotely to a service like Github.
You can install Git on Mac using Homebrew (or from the project website):
$ brew install git
Go ahead and configure your git identity:
$ git config --global user.name "YOUR NAME" $ git config --global user.email "YOUR EMAIL"
I prefer to use the Yarn package manager for Node, instead of NPM (which is the default package manager that comes installed with Node).
Again, on Mac you can install it using Homebrew (or from the project website):
$ brew install yarn
You’re ready to start developing Node applications on MacOS! The only other thing you will need is a text/code editor, if you don’t already have one. I use
vscode, but you can use any editor you like.