Homebrew is a package manager for Mac systems. The biggest advantage of installing Homebrew is that it makes your developer life somewhat comfortable and quick. Installing huge applications like Node, NPM becomes just 3 words matter. Learn more about it on it’s official website – http://brew.sh/. Best part: It comes free.
Installing Homebrew is a single command effort, all you need to do is open your MacBook terminal and enter this single line command as it is:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
The moment you hit enter after this command, Homebrew installation starts and guides itself in. Listen to the prompts on the terminal to finish your installation.
If you wish to read more about “Why Homebrew?” This question get’s answered itself on the Homebrew’s official website Homepage. I’m listing below some of the points from there:
- Good for newbies, easy to understand and manage packages.
- Homebrew installs the stuff you need that Apple (or your Linux system) didn’t.
- Homebrew won’t install files outside its prefix and you can place a Homebrew installation wherever you like.
- Homebrew installs packages to their own directory and then symlinks their files into /usr/local.
Wanna know more, I find this article very easy to understand and helpful https://blog.teamtreehouse.com/install-node-js-npm-mac