Hi
netlify site name: jhhuang.me
github repository: GitHub - jhhhuang/MyHomepage
this is the error message I got when I tried to deploy my site.
Thanks~!
12:46:04 AM: Netlify Build
12:46:04 AM: ────────────────────────────────────────────────────────────────
12:46:04 AM:
12:46:04 AM: ❯ Version
12:46:04 AM: @netlify/build 29.16.3
12:46:04 AM:
12:46:04 AM: ❯ Flags
12:46:04 AM: baseRelDir: true
12:46:04 AM: buildId: 64b6c1bcab4dc20098cef502
12:46:04 AM: deployId: 64b6c1bcab4dc20098cef504
12:46:04 AM:
12:46:04 AM: ❯ Current directory
12:46:04 AM: /opt/build/repo
12:46:04 AM:
12:46:04 AM: ❯ Config file
12:46:04 AM: /opt/build/repo/netlify.toml
12:46:04 AM:
12:46:04 AM: ❯ Context
12:46:04 AM: production
12:46:04 AM:
12:46:04 AM: ❯ Installing plugins
12:46:04 AM: - netlify-plugin-hugo-cache-resources@0.2.1
12:46:05 AM:
12:46:05 AM: ❯ Loading plugins
12:46:05 AM: - netlify-plugin-hugo-cache-resources@0.2.1 from netlify.toml
12:46:10 AM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2 (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)
12:46:06 AM:
12:46:06 AM: netlify-plugin-hugo-cache-resources (onPreBuild event)
12:46:06 AM: ────────────────────────────────────────────────────────────────
12:46:06 AM:
12:46:06 AM: Checking if resources exist at resources
12:46:06 AM: No cache found for resources folder
12:46:06 AM:
12:46:06 AM: (netlify-plugin-hugo-cache-resources onPreBuild completed in 7ms)
12:46:06 AM:
12:46:06 AM: build.command from netlify.toml
12:46:06 AM: ────────────────────────────────────────────────────────────────
12:46:06 AM:
12:46:06 AM: $ hugo --gc --minify -b $URL
12:46:08 AM: hugo: collected modules in 1917 ms
12:46:08 AM: Start building sites …
12:46:08 AM: hugo v0.91.2-1798BD3F+extended linux/amd64 BuildDate=2021-12-23T15:33:34Z VendorInfo=gohugoio
12:46:08 AM: Error: Error building site: /opt/build/repo/content/home/contact.md:46:1: failed to unmarshal YAML: yaml: line 45: could not find expected ‘:’
12:46:08 AM: Total in 1989 ms
12:46:08 AM:
12:46:08 AM: build.command failed
12:46:08 AM: ────────────────────────────────────────────────────────────────
12:46:08 AM:
12:46:08 AM: Error message
12:46:08 AM: Command failed with exit code 255: hugo --gc --minify -b $URL (Search results for '"non-zero exit code: 255"' - Netlify Support Forums)
12:46:08 AM:
12:46:08 AM: Error location
12:46:08 AM: In build.command from netlify.toml:
12:46:08 AM: hugo --gc --minify -b $URL
12:46:08 AM:
12:46:08 AM: Resolved config
12:46:08 AM: build:
12:46:08 AM: command: hugo --gc --minify -b $URL
12:46:08 AM: commandOrigin: config
12:46:08 AM: environment:
12:46:08 AM: - HUGO_VERSION
12:46:08 AM: - HUGO_ENABLEGITINFO
12:46:08 AM: - HUGO_ENV
12:46:08 AM: publish: /opt/build/repo/public
12:46:08 AM: publishOrigin: config
12:46:08 AM: plugins:
12:46:08 AM: - inputs:
12:46:08 AM: debug: true
12:46:08 AM: origin: config
12:46:08 AM: package: netlify-plugin-hugo-cache-resources
12:46:10 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
12:46:10 AM: Failing build: Failed to build site
12:46:10 AM: Finished processing build request in 21.049s