Highly recommended if using npm for dependency management: hugo-installer by Dominique Müller.
Hugo is one of the most popular static site generators. In the world of web development we usually choose npm as our dependency management solution. Hugo, however, is written in Go - and thus not integrated into the npm module ecosystem. Instead, users are asked to install Hugo globally on their systems. Suboptimal, really.
But don’t you worry, Hugo Installer is here to help! It’s a small Node.js script which you can use to fetch the correct Hugo binary for your system, e.g. via a
postinstallhook within a
- Compatible with all operating systems and system architectures (Windows, MacOS, Linux, …, CI/CD)
- Supports all Hugo versions, including extended version
- Verifies checksum & runs health check when installing
- Recognizes already downloaded binaries