Use Homebrew to install and update Node.js on Mac. By Adam Stacoviak 2013-03-12T15:00:00Z #node +2. #macos; #tooling; If you’re looking for an easy guide to install Node.js and npm on OS X and macOS — this is it. Before we get started, are you listening to JS Party? If not, you should be! Homebrew calls itself The missing package manager for macOS and is an essential tool for any developer. Before you can run Homebrew you need to have the Command Line Tools for Xcode installed. It include compilers and other tools that will allow you to build things from source, and if you are missing this it's available through the App Store Updates.
- Homebrew’s package index. Homebrew Formulae is an online package browser for Homebrew – the macOS (and Linux) package manager. For more information on how to install and use Homebrew see our homepage. Browse all macOS formulae.
- The Missing Package Manager for macOS (or Linux). It's all Git and Ruby underneath, so hack away with the knowledge that you can easily revert your modifications and merge upstream updates.
There are two fantastic tools to install on you new Mac: After you install iTerm2, it’s time to install Homebrew!
Homebrew is a package manager – think apt-get for OS X. It is trivial to install and instantly gives you access to thousands of open source tools and utilities. According to the creators of Homebrew, “Homebrew installs the stuff you need that Apple didn’t.”
![Homebrew mac install r Homebrew mac install r](/uploads/1/1/7/8/117856969/260371815.png)
Visit http://brew.sh right now to get started!
Mac Brew
Homebrew installs the stuff you need that Apple didn’t.
![Mac Mac](https://static.makeuseof.com/wp-content/uploads/2019/03/install-homebrew-apps-994x400.jpg)
Top 10 (or more) most useful Homebrew apps to get you started. (Paste this list into your terminal once you get Homebrew installed.)
Install Brew
Screenshot showing Homebrew installing mtr on Mac OS X.
(mtr is a fun and useful ICMP tool which combines ping and traceroute into a realtime display of packet loss across all the path entries returned by traceroute.)
Download Homebrew For Mac
Enjoy!