HUGO

Ananke theme hugo module does not exist error

PS C:\Users\rutvi> cd desktop
PS C:\Users\rutvi\desktop> cd exampleSite
PS C:\Users\rutvi\desktop\exampleSite> ls

Directory: C:\Users\rutvi\desktop\exampleSite

Mode LastWriteTime Length Name


d----- 12/20/2020 12:05 AM content
d----- 12/20/2020 12:05 AM static
d----- 12/22/2020 12:41 AM theme
-a---- 1/12/2021 2:34 PM 918 config.toml
-a---- 1/12/2021 2:15 PM 170828308 hugo.exe

PS C:\Users\rutvi\desktop\exampleSite> ./hugo server
Error: module “ananke” not found; either add it as a Hugo Module or store it in “C:\Users\rutvi\desktop\exampleSite\themes”.: module does not exist

but as you can see in the image i have saved it in this location [ store it in “C:\Users\rutvi\desktop\exampleSite\themes”] just as i am guided in powershell.

what should i do to make it work and why is this happening?


i have made the required changes in config.toml file as well, but it still gives the same error

Usually you need to set the theme in your project’s config, like for example like this:
theme = "ananke"

If the above does not help you resolve the issue then please have a look at the Requesting Help guidelines as there are some useful tips in there.

exampleSite/themes with a S

1 Like
Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\rutvi> cd desktop
PS C:\Users\rutvi\desktop> cd exampleSite
PS C:\Users\rutvi\desktop\exampleSite> ls


    Directory: C:\Users\rutvi\desktop\exampleSite


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----         1/12/2021   9:02 PM                content
d-----         1/12/2021   4:01 PM                resources
d-----        12/20/2020  12:05 AM                static
d-----         1/12/2021   9:01 PM                themes
-a----         1/12/2021   9:02 PM            919 config.toml
-a----         1/12/2021   2:15 PM      170828308 hugo.exe


PS C:\Users\rutvi\desktop\exampleSite> ./hugo server
Start building sites …
Built in 20 ms
Error: Error building site: "C:\Users\rutvi\desktop\exampleSite\content\contact.md:14:1": failed to extract shortcode: template for shortcode "form-contact" not found
PS C:\Users\rutvi\desktop\exampleSite> ./hugo server
Start building sites …
WARN 2021/01/12 21:05:15 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/01/12 21:05:15 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/01/12 21:05:15 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/01/12 21:05:15 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/01/12 21:05:15 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/01/12 21:05:15 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/01/12 21:05:15 found no layout file for "HTML" for kind "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/01/12 21:05:15 found no layout file for "HTML" for kind "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/01/12 21:05:15 found no layout file for "HTML" for kind "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/01/12 21:05:15 found no layout file for "HTML" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/01/12 21:05:15 found no layout file for "HTML" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/01/12 21:05:15 found no layout file for "HTML" for kind "term": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.

                   | EN
-------------------+-----
  Pages            |  7
  Paginator pages  |  0
  Non-page files   |  0
  Static files     |  4
  Processed images |  0
  Aliases          |  0
  Sitemaps         |  1
  Cleaned          |  0

Built in 272 ms
Watching for changes in C:\Users\rutvi\desktop\exampleSite\{content,static}
Watching for config changes in C:\Users\rutvi\desktop\exampleSite\config.toml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

thanks for pointing out themes with S @divinerites; i made the changes and now its giving me this error as shown in the code. please guide me about what’s going wrong here.