# Hugo modules for "dummies"

**URL:** https://discourse.gohugo.io/t/hugo-modules-for-dummies/20758
**Category:** tips & tricks
**Created:** [September 12, 2019, 2:43pm UTC](https://discourse.gohugo.io/t/hugo-modules-for-dummies/20758 "2019-09-12T14:43:04Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)
#### Post date: [March 21, 2020, 9:40pm UTC](https://discourse.gohugo.io/t/hugo-modules-for-dummies/20758/8 "2020-03-21T21:40:07Z")

</div>

A related hint from me (which should get a more prominent place in the docs):

- Hugo uses a /tmp dir for the cache if cace dir is not set (in config.toml or environment)
- Go downloads the modules and write protects all directories
- On MacOS I have experienced some occasional issues which I guess relates to MacOS trying to clean out these directories, but only partly succeeds.
- Setting HUGO\_CACHEDIR os env variable to something outside /tmp is the solution to the above. It’s also in general a good thing.

---

_[View the full topic](https://discourse.gohugo.io/t/hugo-modules-for-dummies/20758)._
