Skip to content

Commit 616f63b

Browse files
authored
docs: Install Node with Homebrew (#13051)
* add Homebrew install information to docs Closes #10398 * move `brew update` note to relevant section * remove unnecessary phrasing
1 parent 9f294ec commit 616f63b

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

docs/tutorial/part-zero/index.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,34 @@ The command line is a text-based interface used to run commands on your computer
1111

1212
Take a moment to locate and open up the command line interface (CLI) for your computer. Depending on which operating system you are using, see [**instructions for Mac**](http://www.macworld.co.uk/feature/mac-software/how-use-terminal-on-mac-3608274/) or [**instructions for Windows**](https://www.quora.com/How-do-I-open-terminal-in-windows).
1313

14-
## Install Node.js
14+
## Install Homebrew for Node.js
15+
16+
To install Gatsby and Node.js, it is recommended to use [Homebrew](https://brew.sh/). A little set-up in the beginning can save you from some headaches later on!
17+
18+
How to install or verify Homebrew on your computer:
19+
20+
1. Open your Terminal
21+
1. See if Homebrew is installed by running `brew -v`. You should see "Homebrew" and a version number.
22+
1. If not, download and install [Homebrew with the instructions](https://docs.brew.sh/Installation) for your operating system (Mac, Linux or Windows).
23+
1. Once you've installed Homebrew, repeat step 2 to verify.
24+
25+
### Mac Users: install XCode Command Line Tools
26+
27+
1. Open your Terminal
28+
1. On a Mac, install XCode Command line tools by running `xcode-select --install`.
29+
1. After being prompted to start the installation, you'll be prompted again to accept a software license for the tools to download.
30+
31+
## ⌚ Install Node.js and npm
1532

1633
Node.js is an environment that can run JavaScript code outside of a web browser. Gatsby is built with Node.js. To get up and running with Gatsby, you’ll need to have a recent version installed on your computer.
1734

1835
_Note: Gatsby's minimum supported Node.js version is Node 8, but feel free to use a more recent version._
1936

20-
### ⌚ Download Node.js
37+
1. Open your Terminal.
38+
1. Run `brew update` to make sure you have the latest version of Homebrew.
39+
1. Run this command to install Node and npm in one go: `brew install node`
2140

22-
Visit the [**Node.js site**](https://nodejs.org/) and follow the instructions to download and install the recommended version for your operating system. Once you have followed the installation steps, make sure everything was installed properly:
41+
Once you have followed the installation steps, make sure everything was installed properly:
2342

2443
### Check your Node.js installation
2544

0 commit comments

Comments
 (0)