Docs: Run "brew update" before "brew install hugo"

Remind user to always run "brew update" first in order to avoid
repeated bug reports from users who didn't do that.

See #824, #1067, #1537, #1633 and #1749
This commit is contained in:
Anthony Fok 2016-01-04 23:36:57 -07:00
parent 9ff36c5a8f
commit 851c16ef3b
4 changed files with 15 additions and 6 deletions

View file

@ -59,10 +59,16 @@ When I did this, I had some problems with directory permissions. Searches on Goo
### Step 2: Run the `brew` command to install `hugo`
Replace `brew install hugo` with `brew install hugo --HEAD` if you
want the absolute latest version—there might be bugs!
First, update the formulae and Homebrew itself by running:
```bash
$ brew update
```
Then, install Hugo using Homebrew by running:
```bash
$ brew install hugo
==> Downloading https://homebrew.bintray.com/bottles/hugo-0.13_1.yosemite.bottle.tar.gz
######################################################################## 100.0%
@ -70,9 +76,13 @@ $ brew install hugo
🍺 /usr/local/Cellar/hugo/0.13_1: 4 files, 14M
```
(Note: Replace `brew install hugo` with `brew install hugo --HEAD`
if you want the absolute latest version in development,
but beware—there might be bugs!)
`Brew` should have updated your path to include Hugo. Confirm by opening a new terminal window and running a few commands:
```
```bash
$ # show the location of the hugo executable
$ which hugo
/usr/local/bin/hugo