You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorial/part-zero/index.md
+22-3Lines changed: 22 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -11,15 +11,34 @@ The command line is a text-based interface used to run commands on your computer
11
11
12
12
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).
13
13
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
15
32
16
33
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.
17
34
18
35
_Note: Gatsby's minimum supported Node.js version is Node 8, but feel free to use a more recent version._
19
36
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`
21
40
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:
0 commit comments