how to do with “unable to auto-detect email address”?
10:24:01 AM: build-image version: 91488c6c0412f5c1c00fb34eff5c1fc41a32bce9 (focal)
10:24:01 AM: buildbot version: 91488c6c0412f5c1c00fb34eff5c1fc41a32bce9
10:24:01 AM: Building without cache
10:24:01 AM: Starting to prepare the repo for build
10:24:01 AM: No cached dependencies found. Cloning fresh repo
10:24:01 AM: git clone --filter=blob:none git@github.com:lsy252525/lsy252525-s-blog
10:24:02 AM: Preparing Git Reference refs/heads/main
10:24:03 AM: Parsing package.json dependencies
10:24:04 AM: Different functions path detected, going to use the one specified in the Netlify configuration file: ‘netlify/functions’ versus ‘netlify\functions’ in the Netlify UI
10:24:04 AM: Different build command detected, going to use the one specified in the Netlify configuration file: ‘hexo d’ versus ‘git config --global user.email “minxingmao@163.com” && git config --global user.name “lsy252525 && hexo g && hexo d”’ in the Netlify UI
10:24:04 AM: Starting to install dependencies
10:24:04 AM: Python version set to 3.8
10:24:04 AM: Attempting Ruby version 2.7.2, read from environment
10:24:05 AM: Using Ruby version 2.7.2
10:24:05 AM: Started restoring cached go cache
10:24:05 AM: Finished restoring cached go cache
10:24:05 AM: Installing Go version 1.19.5 (requested 1.19.5)
10:24:10 AM: go version go1.19.5 linux/amd64
10:24:11 AM: Using PHP version 8.0
10:24:11 AM: v16.20.0 is already installed.
10:24:12 AM: Now using node v16.20.0 (npm v8.19.4)
10:24:12 AM: Enabling Node.js Corepack
10:24:12 AM: Started restoring cached build plugins
10:24:12 AM: Finished restoring cached build plugins
10:24:12 AM: Started restoring cached corepack dependencies
10:24:12 AM: Finished restoring cached corepack dependencies
10:24:12 AM: No npm workspaces detected
10:24:12 AM: Started restoring cached node modules
10:24:12 AM: Finished restoring cached node modules
10:24:12 AM: Installing npm packages using npm version 8.19.4
10:24:14 AM: npm WARN deprecated source-map-resolve@0.6.0: See GitHub - lydell/source-map-resolve: [DEPRECATED] Resolve the source map and/or sources for a generated file.
10:24:16 AM: npm WARN deprecated cuid@2.1.8: Cuid and other k-sortable and non-cryptographic ids (Ulid, ObjectId, KSUID, all UUIDs) are all insecure. Use @paralleldrive/cuid2 instead.
10:24:17 AM: added 250 packages, and audited 251 packages in 5s
10:24:17 AM: found 0 vulnerabilities
10:24:17 AM: npm packages installed
10:24:17 AM: Install dependencies script success
10:24:17 AM: Starting build script
10:24:18 AM: Detected 2 framework(s)
10:24:18 AM: “hexo” at version “6.3.0”
10:24:18 AM: “jekyll” at version “unknown”
10:24:18 AM: Section completed: initializing
10:24:20 AM:
10:24:20 AM: Netlify Build
10:24:20 AM: ────────────────────────────────────────────────────────────────
10:24:20 AM:
10:24:20 AM: ❯ Version
10:24:20 AM: @netlify/build 29.9.2
10:24:20 AM:
10:24:20 AM: ❯ Flags
10:24:20 AM: baseRelDir: true
10:24:20 AM: buildId: 643b5c3cccf92654027edf33
10:24:20 AM: deployId: 643b5c3cccf92654027edf35
10:24:20 AM:
10:24:20 AM: ❯ Current directory
10:24:20 AM: /opt/build/repo
10:24:20 AM:
10:24:20 AM: ❯ Config file
10:24:20 AM: /opt/build/repo/netlify.toml
10:24:20 AM:
10:24:20 AM: ❯ Context
10:24:20 AM: production
10:24:20 AM:
10:24:20 AM: 1. build.command from netlify.toml
10:24:20 AM: ────────────────────────────────────────────────────────────────
10:24:20 AM:
10:24:20 AM: $ hexo d
10:24:20 AM: INFO Validating config
10:24:20 AM: INFO Start processing
10:24:20 AM: INFO Files loaded in 272 ms
10:24:21 AM: INFO Generated: about/me.html
10:24:21 AM: INFO Generated: archives/index.html
10:24:21 AM: INFO Generated: archives/2023/index.html
10:24:21 AM: INFO Generated: archives/2023/04/index.html
10:24:21 AM: INFO Generated: index.html
10:24:21 AM: INFO Generated: images/apple-touch-icon-next.png
10:24:21 AM: INFO Generated: images/avatar.gif
10:24:21 AM: INFO Generated: posts/16107/index.html
10:24:21 AM: INFO Generated: images/logo.svg
10:24:21 AM: INFO Generated: images/favicon-16x16-next.png
10:24:21 AM: INFO Generated: images/favicon-32x32-next.png
10:24:21 AM: INFO Generated: images/logo-algolia-nebula-blue-full.svg
10:24:21 AM: INFO Generated: posts/1/index.html
10:24:21 AM: INFO Generated: css/noscript.css
10:24:21 AM: INFO Generated: js/bookmark.js
10:24:21 AM: INFO Generated: js/schemes/muse.js
10:24:21 AM: INFO Generated: js/third-party/pace.js
10:24:21 AM: INFO Generated: js/third-party/comments/changyan.js
10:24:21 AM: INFO Generated: js/third-party/chat/chatra.js
10:24:21 AM: INFO Generated: js/third-party/analytics/baidu-analytics.js
10:24:21 AM: INFO Generated: js/third-party/search/algolia-search.js
10:24:21 AM: INFO Generated: js/third-party/math/katex.js
10:24:21 AM: INFO Generated: js/third-party/tags/mermaid.js
10:24:21 AM: INFO Generated: js/third-party/statistics/firestore.js
10:24:21 AM: INFO Generated: js/comments-buttons.js
10:24:21 AM: INFO Generated: js/next-boot.js
10:24:21 AM: INFO Generated: js/comments.js
10:24:21 AM: INFO Generated: js/schedule.js
10:24:21 AM: INFO Generated: js/pjax.js
10:24:21 AM: INFO Generated: js/config.js
10:24:21 AM: INFO Generated: js/third-party/fancybox.js
10:24:23 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)
10:24:21 AM: INFO Generated: js/motion.js
10:24:21 AM: INFO Generated: js/third-party/quicklink.js
10:24:21 AM: INFO Generated: js/third-party/analytics/growingio.js
10:24:21 AM: INFO Generated: js/third-party/analytics/matomo.js
10:24:21 AM: INFO Generated: js/third-party/comments/disqusjs.js
10:24:21 AM: INFO Generated: js/third-party/analytics/google-analytics.js
10:24:21 AM: INFO Generated: js/third-party/comments/gitalk.js
10:24:21 AM: INFO Generated: js/third-party/comments/disqus.js
10:24:21 AM: INFO Generated: js/third-party/comments/livere.js
10:24:21 AM: INFO Generated: js/third-party/comments/isso.js
10:24:21 AM: INFO Generated: js/third-party/comments/utterances.js
10:24:21 AM: INFO Generated: js/third-party/chat/gitter.js
10:24:21 AM: INFO Generated: js/third-party/math/mathjax.js
10:24:21 AM: INFO Generated: js/third-party/search/local-search.js
10:24:21 AM: INFO Generated: js/third-party/tags/pdf.js
10:24:21 AM: INFO Generated: js/third-party/chat/tidio.js
10:24:21 AM: INFO Generated: js/third-party/statistics/lean-analytics.js
10:24:21 AM: INFO Generated: css/main.css
10:24:21 AM: INFO Generated: js/utils.js
10:24:21 AM: INFO 50 files generated in 810 ms
10:24:21 AM: INFO Deploying: git
10:24:21 AM: INFO Setting up Git deployment…
10:24:21 AM: hint: Using ‘master’ as the name for the initial branch. This default branch name
10:24:21 AM: hint: is subject to change. To configure the initial branch name to use in all
10:24:21 AM: hint: of your new repositories, which will suppress this warning, call:
10:24:21 AM: hint:
10:24:21 AM: hint: git config --global init.defaultBranch
10:24:21 AM: hint:
10:24:21 AM: hint: Names commonly chosen instead of ‘master’ are ‘main’, ‘trunk’ and
10:24:21 AM: hint: ‘development’. The just-created branch can be renamed via this command:
10:24:21 AM: hint:
10:24:21 AM: hint: git branch -m
10:24:21 AM: Initialized empty Git repository in /opt/build/repo/.deploy_git/.git/
10:24:21 AM: Author identity unknown
10:24:21 AM: *** Please tell me who you are.
10:24:21 AM: Run
10:24:21 AM: git config --global user.email “you@example.com”
10:24:21 AM: git config --global user.name “Your Name”
10:24:21 AM: to set your account’s default identity.Omit --global to set the identity only in this repository.
10:24:21 AM: fatal: unable to auto-detect email address (got ‘buildbot@build-643b5c3cccf92654027edf33.(none)’)
10:24:21 AM: FATAL Something’s wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.htmlError: Spawn failed
10:24:21 AM: at ChildProcess. (/opt/build/repo/node_modules/hexo-util/lib/spawn.js:51:21)
10:24:21 AM: at ChildProcess.emit (node:events:513:28)
10:24:21 AM: at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
10:24:21 AM:
10:24:21 AM: “build.command” failed
10:24:21 AM: ────────────────────────────────────────────────────────────────
10:24:21 AM:
10:24:21 AM: Error message
10:24:21 AM: Command failed with exit code 2: hexo d
10:24:21 AM:
10:24:21 AM: Error location
10:24:21 AM: In build.command from netlify.toml:
10:24:21 AM: hexo d
10:24:21 AM:
10:24:21 AM: Resolved config
10:24:21 AM: build:
10:24:21 AM: command: hexo d
10:24:21 AM: commandOrigin: config
10:24:21 AM: publish: /opt/build/repo/public
10:24:21 AM: publishOrigin: config
10:24:21 AM: functionsDirectory: /opt/build/repo/netlify/functions
10:24:22 AM: Caching artifacts
10:24:22 AM: Started saving node modules
10:24:22 AM: Finished saving node modules
10:24:22 AM: Started saving build plugins
10:24:22 AM: Finished saving build plugins
10:24:22 AM: Started saving corepack cache
10:24:22 AM: Finished saving corepack cache
10:24:22 AM: Started saving pip cache
10:24:22 AM: Finished saving pip cache
10:24:22 AM: Started saving emacs cask dependencies
10:24:22 AM: Finished saving emacs cask dependencies
10:24:22 AM: Started saving maven dependencies
10:24:22 AM: Finished saving maven dependencies
10:24:22 AM: Started saving boot dependencies
10:24:22 AM: Finished saving boot dependencies
10:24:22 AM: Started saving rust rustup cache
10:24:22 AM: Finished saving rust rustup cache
10:24:22 AM: Started saving go dependencies
10:24:22 AM: Finished saving go dependencies
10:24:22 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
10:24:23 AM: Failing build: Failed to build site
10:24:23 AM: Finished processing build request in 21.92s