# V0.152.0 - Error: command error: failed to load modules

**URL:** <https://discourse.gohugo.io/t/v0-152-0-error-command-error-failed-to-load-modules/56124>\
**Category:** support\
**Tags:** modules\
**Created:** [October 21, 2025, 10:08pm UTC](https://discourse.gohugo.io/t/v0-152-0-error-command-error-failed-to-load-modules/56124 "2025-10-21T22:08:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![marshalc](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/marshalc/32/17434_2.png) [@marshalc](https://discourse.gohugo.io/u/marshalc)\
**Post date:** [October 21, 2025, 10:08pm UTC](https://discourse.gohugo.io/t/v0-152-0-error-command-error-failed-to-load-modules/56124/1 "2025-10-21T22:08:32Z")

</div>

Evening all,

Just done the move from 0.151.0 to 0.152.0 and on my first attempt at building a site I’m in the process of adding to, I got this error:

```bash
hugo -D --cleanDestinationDir --gc --templateMetrics --logLevel debug

Total in 94 ms
Error: failed to load modules: invalid module config for "github.com/ouhft/docsy": "../../node_modules/bootstrap": mount source must be a local path for modules/themes

```

I think the relevant part of my `hugo.yaml` config file is:

```yaml
module:
    proxy: direct
    hugoVersion:
        extended: true
        min: "0.152.0"
    imports:
        - path: github.com/ouhft/docsy
          disable: false

```

Sadly I can’t share the full repository for ease of review.

I’m reading through the release notes, and [Configure modules](https://gohugo.io/configuration/module/) but I’m not seeing anything I’m missing - nor any kind of hint as to if/how I should rebuild the site (maybe something related to go.mod being replaced by hugo.mod? or how to transition to that?)

Suggestions please 🙂

Thanks!  
Carl

---

<div class="post-metadata">

**Author:** ![marshalc](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/marshalc/32/17434_2.png) [@marshalc](https://discourse.gohugo.io/u/marshalc)\
**Post date:** [October 21, 2025, 10:09pm UTC](https://discourse.gohugo.io/t/v0-152-0-error-command-error-failed-to-load-modules/56124/2 "2025-10-21T22:09:47Z")

</div>

First hint might be whether I’m looking in the right place - is this my current repo that’s calling this module, or is it likely in the module itself?

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [October 21, 2025, 10:23pm UTC](https://discourse.gohugo.io/t/v0-152-0-error-command-error-failed-to-load-modules/56124/3 "2025-10-21T22:23:03Z")

</div>

For the moment go back to 0.151.2. And yes, this is related a module’s mount config.

---

<div class="post-metadata">

**Author:** ![marshalc](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/marshalc/32/17434_2.png) [@marshalc](https://discourse.gohugo.io/u/marshalc)\
**Post date:** [October 21, 2025, 10:38pm UTC](https://discourse.gohugo.io/t/v0-152-0-error-command-error-failed-to-load-modules/56124/4 "2025-10-21T22:38:34Z")

</div>

Thanks - and likely the pragmatic answer (especially since it’s near midnight and I don’t have all that much time spare to Fix Forward as is my usual approach). Sadly that involves a new challenge for me that’s not Hugo’s problem: reverting Hugo via Homebrew on macOS

Seems this isn’t an unheard of skill, just not an easy one: [Installing Old Versions with Homebrew | The Blog of Sam Craven](https://blog.seemsgood.com/posts/installing-old-versions-with-homebrew/) (also a Hugo user it seems)

… I’ll attempt this dance in the morning I think 🙂

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [October 22, 2025, 9:55pm UTC](https://discourse.gohugo.io/t/v0-152-0-error-command-error-failed-to-load-modules/56124/5 "2025-10-22T21:55:30Z")

</div>

See [https://github.com/gohugoio/hugo/issues/14083](https://github.com/gohugoio/hugo/issues/14083).

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [October 24, 2025, 4:07pm UTC](https://discourse.gohugo.io/t/v0-152-0-error-command-error-failed-to-load-modules/56124/6 "2025-10-24T16:07:35Z")

</div>

Resolved with [v0.152.2](https://github.com/gohugoio/hugo/releases/tag/v0.152.2).

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [October 26, 2025, 4:07pm UTC](https://discourse.gohugo.io/t/v0-152-0-error-command-error-failed-to-load-modules/56124/7 "2025-10-26T16:07:42Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
