Install hugo on MAC OS
How to install hugo on MAC OS?
- there are three common methods, one of which may be helpful for you.
-
download hugo form github
- unzip downloaded file
- go to the currently unzipped fold and move hugo to
/usr/local/bin/
, on the terminal
sudo mv hugo /usr/local/bin/
- try
hugo version
. We can see the version if it succeeds.
hugo version
-
install hugo via brew
- install homebrew if you do not have it yet
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- install hugo, on the terminal
brew install hugo
- check if it succeeds by typing
hugo version
orhugo help
, on the terminal
hugo help
-
install hugo via blogdown if you are an R user
- install blogdown
- install hugo
blogdown:::install_hugo()
- check if it succeeds by typing
hugo version
orhugo help
on the terminal embedded in R studio
hugo help