Hugo Installation on MacOS
This guide will walk you through setting up a development environment by installing Go, Dart Sass, and Hugo on your MacOS machine.
Prerequisites
Before installing Hugo, you'll need to have Go and Dart Sass installed on your system.
Installing Go
-
Download the Go Package:
- Visit the Go Downloads page to download the latest version of Go suitable for your operating system.
-
Install Go:
- Follow the installation instructions provided for your OS.
-
Verify the Installation:
- Open a terminal and run the following command to check if Go is installed correctly:
go version
- You should see an output similar to:
go version go1.22.4 darwin/amd64
Installing Dart Sass
-
Install Dart Sass via Homebrew:
- Open a terminal and run the following command to install Dart Sass:
brew install sass/sass/sass
-
Verify the Installation:
- After the installation is complete, verify it by running:
sass --version
- The expected output should be:
1.77.6
Installing Hugo
With Go and Dart Sass installed, you can now proceed to install Hugo.
-
Install Hugo via Homebrew:
- In the terminal, run the following command:
brew install hugo
-
Verify the Installation:
- After installation, check that Hugo is installed correctly by running:
hugo version
- The output should be similar to:
hugo v0.127.0+extended darwin/amd64 BuildDate=2024-06-05T10:27:59Z VendorInfo=brew
Conclusion
By following these steps, you've successfully set up Go, Dart Sass, and Hugo on your development environment. With these tools, you're now ready to start building and managing modern websites efficiently.
Happy me! 🌱