Install hugo on MAC OS

How to install hugo on MAC OS?

  1. 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
    
  2. 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 or hugo help, on the terminal
    hugo help
    
  3. install hugo via blogdown if you are an R user

    blogdown:::install_hugo()
    
    • check if it succeeds by typing hugo version or hugo help on the terminal embedded in R studio
    hugo help