thuliteio/doks

Hugo cannot start the server. Complete crash

Liffecs opened this issue · 2 comments

Description

Steps to reproduce

hugo new site codedocs

clone git in themes
Load Theme in conf

hugo server

Expected result

Start a hugo server

Actual result

/mnt/c/git/code-docs/code-docs [git::main *] [liffecs@Yoga] [17:17]
> hugo server
Start building sites …
hugo v0.111.3+extended linux/amd64 BuildDate=2023-03-16T08:41:31Z VendorInfo=debian:0.111.3-1
ERROR 2023/07/21 17:17:44 Failed to get JSON resource "/package.json": open /mnt/c/git/code-docs/code-docs/package.json: no such file or directory
If you feel that this should not be logged as an ERROR, you can ignore it by adding this to your site config:
ignoreErrors = ["error-remote-getjson"]
ERROR 2023/07/21 17:17:44 render of "taxonomy" failed: "/mnt/c/git/code-docs/code-docs/themes/doks/layouts/_default/baseof.html:25:7": execute of template failed: template: _default/terms.html:25:7: executing "_default/terms.html" at <partial "footer/script-footer.html" .>: error calling partial: "/mnt/c/git/code-docs/code-docs/themes/doks/layouts/partials/footer/script-footer.html:41:23": execute of template failed: template: partials/footer/script-footer.html:41:23: executing "partials/footer/script-footer.html" at <append $flexSearch>: error calling append: reflect: call of reflect.Value.Type on zero Value
ERROR 2023/07/21 17:17:44 render of "home" failed: "/mnt/c/git/code-docs/code-docs/themes/doks/layouts/_default/baseof.html:25:7": execute of template failed: template: index.html:25:7: executing "index.html" at <partial "footer/script-footer.html" .>: error calling partial: "/mnt/c/git/code-docs/code-docs/themes/doks/layouts/partials/footer/script-footer.html:41:23": execute of template failed: template: partials/footer/script-footer.html:41:23: executing "partials/footer/script-footer.html" at <append $flexSearch>: error calling append: reflect: call of reflect.Value.Type on zero Value
ERROR 2023/07/21 17:17:44 failed to render pages: render of "taxonomy" failed: "/mnt/c/git/code-docs/code-docs/themes/doks/layouts/_default/baseof.html:25:7": execute of template failed: template: _default/terms.html:25:7: executing "_default/terms.html" at <partial "footer/script-footer.html" .>: error calling partial: "/mnt/c/git/code-docs/code-docs/themes/doks/layouts/partials/footer/script-footer.html:41:23": execute of template failed: template: partials/footer/script-footer.html:41:23: executing "partials/footer/script-footer.html" at <append $flexSearch>: error calling append: reflect: call of reflect.Value.Type on zero Value
Error: Error building site: TOCSS: failed to transform "scss/app.scss" (text/x-scss): "/mnt/c/git/code-docs/code-docs/themes/doks/assets/scss/app.scss:2:1": File to import not found or unreadable: bootstrap/scss/functions.
Built in 7477 ms

Environment

/mnt/c/git/code-docs/code-docs [git::main *] [liffecs@Yoga] [17:17]
> npm run check
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\git\code-docs\code-docs\package.json
npm ERR! errno -4058
npm ERR! enoent Could not read package.json: Error: ENOENT: no such file or directory, open 'C:\git\code-docs\code-docs\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in: C:\Users\Liffecs\AppData\Local\npm-cache\_logs\2023-07-21T15_21_21_811Z-debug-0.log

Did you check that package.json exists?

npm ERR! enoent Could not read package.json: Error: ENOENT: no such file or directory, open 'C:\git\code-docs\code-docs\package.json'

See Getting Started — Doks works slightly different