<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
    <channel>
        
        <title>
            <![CDATA[ Homebrew - freeCodeCamp.org ]]>
        </title>
        <description>
            <![CDATA[ Browse thousands of programming tutorials written by experts. Learn Web Development, Data Science, DevOps, Security, and get developer career advice. ]]>
        </description>
        <link>https://www.freecodecamp.org/news/</link>
        <image>
            <url>https://cdn.freecodecamp.org/universal/favicons/favicon.png</url>
            <title>
                <![CDATA[ Homebrew - freeCodeCamp.org ]]>
            </title>
            <link>https://www.freecodecamp.org/news/</link>
        </image>
        <generator>Eleventy</generator>
        <lastBuildDate>Sat, 27 Jun 2026 22:34:00 +0000</lastBuildDate>
        <atom:link href="https://www.freecodecamp.org/news/tag/homebrew/rss.xml" rel="self" type="application/rss+xml" />
        <ttl>60</ttl>
        
            <item>
                <title>
                    <![CDATA[ How to Set Up a Mac for Web Development ]]>
                </title>
                <description>
                    <![CDATA[ By Michael Uloth While you can build basic websites with nothing more than a text editor and browser, you may want to up your game by adding a JavaScript framework like React or Vue and useful tools like Git to your workflow. But wait! Your Mac isn’t... ]]>
                </description>
                <link>https://www.freecodecamp.org/news/how-to-set-up-your-mac-for-web-development-b40bebc0cac3/</link>
                <guid isPermaLink="false">66d460893bc3ab877dae2226</guid>
                
                    <category>
                        <![CDATA[ beginner ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Git ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Homebrew ]]>
                    </category>
                
                    <category>
                        <![CDATA[ JavaScript ]]>
                    </category>
                
                    <category>
                        <![CDATA[ mac ]]>
                    </category>
                
                    <category>
                        <![CDATA[ node ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Node.js ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Web Development ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ freeCodeCamp ]]>
                </dc:creator>
                <pubDate>Sat, 20 Oct 2018 15:15:00 +0000</pubDate>
                <media:content url="https://cdn-media-1.freecodecamp.org/images/0*dzQLqKvHf4nNk1gp.jpg" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>By Michael Uloth</p>
<p>While you can build basic websites with nothing more than a text editor and browser, you may want to up your game by adding a JavaScript framework like <a target="_blank" href="https://reactjs.org/">React</a> or <a target="_blank" href="https://vuejs.org/">Vue</a> and useful tools like <a target="_blank" href="https://git-scm.com/">Git</a> to your workflow.</p>
<p>But wait! Your Mac isn’t ready. Before diving in, you’ll need to install a few items to that will save you from confusing errors later. ?</p>
<p>This article will guide you through the minimum setup you’ll need to get up and running with JavaScript-based web development on your Mac.</p>
<p>Let’s go!</p>
<h4 id="heading-update-your-mac">Update Your Mac</h4>
<p>Before installing any new software, follow <a target="_blank" href="https://support.apple.com/en-ca/HT201541">these instructions</a> from Apple to upgrade macOS and your current software to the latest version.</p>
<h4 id="heading-choose-a-terminal-app">Choose a Terminal App</h4>
<p>Since you’ll be interacting with your Mac using the command line in this article, you’ll need a terminal app.</p>
<p>Any of the following are good options:</p>
<ul>
<li><a target="_blank" href="https://hyper.is/">Hyper</a></li>
<li><a target="_blank" href="https://www.iterm2.com/">iTerm2</a></li>
<li><a target="_blank" href="https://code.visualstudio.com/docs/editor/integrated-terminal">Visual Studio Code</a>’s integrated terminal</li>
<li><a target="_blank" href="https://support.apple.com/en-ca/guide/terminal/welcome/mac">Terminal</a> (the default app that comes with your Mac)</li>
</ul>
<p>If you aren’t sure which one to pick, choose Hyper.</p>
<h4 id="heading-command-line-developer-tools">Command Line Developer Tools</h4>
<p>The first thing you’ll need to install from the command line are your Mac’s <strong>command line developer tools</strong>. Installing these now will prevent <a target="_blank" href="https://stackoverflow.com/questions/32893412/command-line-tools-not-working-os-x-el-capitan-macos-sierra-macos-high-sierra">weird errors</a> later.</p>
<p>To check if the tools are already installed, type the following command in your terminal app and hit return:</p>
<pre><code>xcode-select --version
</code></pre><p>If the result is not a version number, install the tools with this command:</p>
<pre><code>xcode-select --install
</code></pre><p>A dialog will appear asking if you’d like to install the tools. Click <strong>Install</strong> and the package will download and install itself.</p>
<p>When the installation finishes, confirm the tools are now installed by rerunning the first command:</p>
<pre><code>xcode-select --version
</code></pre><p>The result should now be a version number.</p>
<h4 id="heading-homebrew">Homebrew</h4>
<p>Instead of installing the next few tools by going to each tool’s website, finding the download page, clicking the download link, unzipping the files, and manually running the installer, we’re going to use <a target="_blank" href="https://brew.sh/">Homebrew</a>.</p>
<p><strong>Homebrew</strong> is a tool that lets you install, update and uninstall software on your Mac from the command line. This is faster and <a target="_blank" href="https://blog.teamtreehouse.com/install-node-js-npm-mac">safer</a> than the manual approach and generally makes your development life easier.</p>
<p>First, check if Homebrew is already installed:</p>
<pre><code>brew --version
</code></pre><p>If you don’t see a version number, install Homebrew with this command:</p>
<pre><code>/usr/bin/ruby -e <span class="hljs-string">"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"</span>
</code></pre><p>I promise that’s the weirdest command you’ll see in this article! ? Thanks to Homebrew, the rest are simple.</p>
<p>Before moving on, confirm Homebrew is now installed:</p>
<pre><code>brew --version
</code></pre><h4 id="heading-node-and-npm">Node and npm</h4>
<p><a target="_blank" href="https://nodejs.org/">Node.js</a> is a tool that allows your Mac to run JavaScript code outside of a web browser. If you want to run a JavaScript framework like React or Vue on your Mac, you’ll need to have Node installed.</p>
<p>Node also includes <a target="_blank" href="https://www.npmjs.com/">npm</a> (the Node Package Manager), which gives you access to a giant library of free code you can download and use in your projects.</p>
<p>First, check if Node is already installed:</p>
<pre><code>node --version
</code></pre><p>If not, install it with Homebrew:</p>
<pre><code>brew install node
</code></pre><p>Finally, confirm Node and npm are now installed:</p>
<pre><code>node --version
</code></pre><pre><code>npm --version
</code></pre><h4 id="heading-version-control-with-git">Version Control with Git</h4>
<p><a target="_blank" href="https://git-scm.com/">Git</a> is a tool that helps you track changes to your code and work with other developers on shared projects.</p>
<p>Using Git on every project is a great habit to develop and will prepare you for future projects where Git may be required. Some tools (like <a target="_blank" href="https://www.gatsbyjs.org/">GatsbyJS</a>) also depend on Git being installed on your Mac, so you’ll need it even if you don’t plan to add it to your workflow.</p>
<p>Once again, start by checking if Git is already installed:</p>
<pre><code>git --version
</code></pre><p>If not, install it:</p>
<pre><code>brew install git
</code></pre><p>And confirm the installation worked:</p>
<pre><code>git --version
</code></pre><p>Once in a while, run the following command and everything you’ve installed with Homebrew will update automatically:</p>
<pre><code>brew update &amp;&amp; brew upgrade &amp;&amp; brew cleanup &amp;&amp; brew doctor
</code></pre><p>That one command is all you need to keep your system up to date. ?</p>
<p>I usually run it when I start a new project, but feel free to do so whenever you like. (When you run this command, if Homebrew suggests additional commands for you to run, go ahead and run them. If a command begins with <code>sudo</code> and you are prompted for a password, use your Mac’s admin password.)</p>
<p>That’s it for the command line!</p>
<h4 id="heading-code-editor">Code Editor</h4>
<p>While you can write code in any text editor, using one that highlights and validates your code will make your life much easier.</p>
<p>Any of the following are good options:</p>
<ul>
<li><a target="_blank" href="https://code.visualstudio.com/">Visual Studio Code</a></li>
<li><a target="_blank" href="https://atom.io/">Atom</a></li>
<li><a target="_blank" href="https://www.sublimetext.com/">Sublime Text</a></li>
</ul>
<p>If you’re just getting started, choose Visual Studio Code.</p>
<h4 id="heading-browser">Browser</h4>
<p>As you code, it helps to view the app or website you’re building in a browser to confirm it works. While you can use any browser for this, some include extra developer tools that show you details about your code and how to improve it.</p>
<p>Either of the following are good options:</p>
<ul>
<li><a target="_blank" href="https://www.google.com/chrome/">Chrome</a></li>
<li><a target="_blank" href="https://www.mozilla.org/firefox/">Firefox</a></li>
</ul>
<p>If you’re just getting started, choose Chrome.</p>
<h4 id="heading-finder">Finder</h4>
<p>A quick tip here: you’ll want to show the files your Mac hides by default. (For example, git files are automatically hidden, but sometimes you’ll want to edit them.)</p>
<p>The easiest way to show your Mac’s hidden files is with the keyboard shortcut <strong>⌘⇧.</strong> (Command + Shift + Period). This will alternate between showing and hiding these files so you can access them when you need them.</p>
<h4 id="heading-conclusion">Conclusion</h4>
<p>You’re all set! ?</p>
<p>That’s all you need to get up and running with JavaScript-based front-end development on your Mac.</p>
<p>To prevent confusion, I left out any items that aren’t strictly required. If you’d like to dive deeper into optional ways you can further customize your Mac for web development, check out the links below.</p>
<h3 id="heading-further-reading">Further Reading</h3>
<ul>
<li><a target="_blank" href="https://www.taniarascia.com/setting-up-a-brand-new-mac-for-development/">Setting up a Brand New Mac for Development</a> by Tania Rascia</li>
<li><a target="_blank" href="https://www.bhnywl.com/blog/setting-up-a-macbook-for-front-end-development/">Setting up a MacBook for Front-End Development</a> by Ben Honeywill</li>
<li><a target="_blank" href="https://webdevstudios.com/2018/09/27/finding-the-best-all-around-local-development-environment/">Leaving Homestead: Finding the Best All-Around Local Development Environment</a> by WebDevStudios (in case you need a PHP setup as well)</li>
</ul>
<p><a target="_blank" href="https://twitter.com/search?q=upandrunningtutorials.com/how-to-set-up-a-mac-for-web-development">Discuss on Twitter</a></p>
<hr>
<p><em>Originally published at <a target="_blank" href="https://www.michaeluloth.com/how-to-set-up-a-mac-for-web-development/">michaeluloth.com</a>.</em></p>
 ]]>
                </content:encoded>
            </item>
        
    </channel>
</rss>
