按照作者的文档一步一步来,部署成功了,但后续添加笔记再push的时候netlify那边出现了一些问题,然后再写新笔记就push不过去了。
如图
4:14:49 PM: Build ready to start
4:14:51 PM: build-image version: d05976bd3309b73a86eaa327bf80e105ff13f5e4 (focal)
4:14:51 PM: build-image tag: v4.13.0
4:14:51 PM: buildbot version: 3a000de5d3727998f3297394596d287d7e49aecd
4:14:51 PM: Fetching cached dependencies
4:14:52 PM: Starting to download cache of 99.6MB
4:14:52 PM: Finished downloading cache in 981.054526ms
4:14:52 PM: Starting to extract cache
4:14:53 PM: Finished extracting cache in 845.570336ms
4:14:53 PM: Finished fetching cache in 1.865092165s
4:14:53 PM: Starting to prepare the repo for build
4:14:53 PM: Preparing Git Reference refs/heads/main
4:14:54 PM: Parsing package.json dependencies
4:14:55 PM: Starting build script
4:14:55 PM: Installing dependencies
4:14:55 PM: Python version set to 2.7
4:14:56 PM: Started restoring cached node version
4:14:56 PM: Finished restoring cached node version
4:14:57 PM: v16.18.0 is already installed.
4:14:57 PM: Now using node v16.18.0 (npm v8.19.2)
4:14:57 PM: Enabling node corepack
4:14:57 PM: Started restoring cached build plugins
4:14:57 PM: Finished restoring cached build plugins
4:14:57 PM: Attempting ruby version 2.7.2, read from environment
4:14:58 PM: Using ruby version 2.7.2
4:14:58 PM: Using PHP version 8.0
4:14:58 PM: No npm workspaces detected
4:14:58 PM: Started restoring cached node modules
4:14:58 PM: Finished restoring cached node modules
4:14:59 PM: Started restoring cached go cache
4:14:59 PM: Finished restoring cached go cache
4:14:59 PM: Installing Go version 1.17 (requested 1.17)
4:15:03 PM: unset GOOS;
4:15:03 PM: unset GOARCH;
4:15:03 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.17.linux.amd64';
4:15:03 PM: export PATH="/opt/buildhome/.gimme/versions/go1.17.linux.amd64/bin:${PATH}";
4:15:03 PM: go version >&2;
4:15:03 PM: export GIMME_ENV="/opt/buildhome/.gimme/env/go1.17.linux.amd64.env"
4:15:03 PM: go version go1.17 linux/amd64
4:15:03 PM: Installing missing commands
4:15:03 PM: Verify run directory
4:15:04 PM:
4:15:04 PM: ────────────────────────────────────────────────────────────────
4:15:04 PM: Netlify Build
4:15:04 PM: ────────────────────────────────────────────────────────────────
4:15:04 PM:
4:15:04 PM: ❯ Version
4:15:04 PM: @netlify/build 27.20.6
4:15:04 PM:
4:15:04 PM: ❯ Flags
4:15:04 PM: baseRelDir: true
4:15:04 PM: buildId: 6351031505117a0008738717
4:15:04 PM: deployId: 6351031505117a0008738719
4:15:04 PM:
4:15:04 PM: ❯ Current directory
4:15:04 PM: /opt/build/repo
4:15:04 PM:
4:15:04 PM: ❯ Config file
4:15:04 PM: /opt/build/repo/netlify.toml
4:15:04 PM:
4:15:04 PM: ❯ Context
4:15:04 PM: production
4:15:04 PM:
4:15:04 PM: ────────────────────────────────────────────────────────────────
4:15:04 PM: 1. build.command from netlify.toml
4:15:04 PM: ────────────────────────────────────────────────────────────────
4:15:04 PM:
4:15:04 PM: $ npm install && npm run build
4:15:06 PM: up to date, audited 637 packages in 2s
4:15:06 PM: 69 packages are looking for funding
4:15:06 PM: run `npm fund` for details
4:15:06 PM: 13 vulnerabilities (5 moderate, 6 high, 2 critical)
4:15:06 PM: To address all issues, run:
4:15:06 PM: npm audit fix
4:15:06 PM: Run `npm audit` for details.
4:15:06 PM: > [email protected] build
4:15:06 PM: > npm-run-all build:*
4:15:07 PM: > [email protected] build:eleventy
4:15:07 PM: > cross-env ELEVENTY_ENV=prod NODE_OPTIONS=--max-old-space-size=4096 eleventy
4:15:08 PM: [11ty] Problem writing Eleventy templates: (more in DEBUG output)
4:15:08 PM: [11ty] > Output conflict: multiple input files are writing to `dist/test11/index.html`. Use distinct `permalink` values to resolve this conflict.
4:15:08 PM: 1. ./src/site/notes/test11/第一篇.md
4:15:08 PM: 2. ./src/site/notes/test11/第二篇.md
4:15:08 PM: `DuplicatePermalinkOutputError` was thrown:
4:15:08 PM: [11ty] (Repeated output has been truncated…)
4:15:08 PM: at TemplateMap.checkForDuplicatePermalinks (/opt/build/repo/node_modules/@11ty/eleventy/src/TemplateMap.js:656:13)
4:15:08 PM: at TemplateMap.cache (/opt/build/repo/node_modules/@11ty/eleventy/src/TemplateMap.js:365:10)
4:15:08 PM: at processTicksAndRejections (node:internal/process/task_queues:96:5)
4:15:08 PM: at async TemplateWriter._createTemplateMap (/opt/build/repo/node_modules/@11ty/eleventy/src/TemplateWriter.js:242:5)
4:15:08 PM: at async TemplateWriter.generateTemplates (/opt/build/repo/node_modules/@11ty/eleventy/src/TemplateWriter.js:275:5)
4:15:08 PM: at async TemplateWriter.write (/opt/build/repo/node_modules/@11ty/eleventy/src/TemplateWriter.js:321:23)
4:15:08 PM: at async Eleventy.executeBuild (/opt/build/repo/node_modules/@11ty/eleventy/src/Eleventy.js:986:13)
4:15:08 PM: [11ty] Copied 1 file / Wrote 0 files in 0.79 seconds (v1.0.0)
4:15:08 PM: ERROR: "build:eleventy" exited with 1.
4:15:08 PM:
4:15:08 PM: ────────────────────────────────────────────────────────────────
4:15:08 PM: "build.command" failed
4:15:08 PM: ────────────────────────────────────────────────────────────────
4:15:08 PM:
4:15:08 PM: Error message
4:15:08 PM: Command failed with exit code 1: npm install && npm run build (https://ntl.fyi/exit-code-1)
4:15:08 PM:
4:15:08 PM: Error location
4:15:08 PM: In build.command from netlify.toml:
4:15:08 PM: npm install && npm run build
4:15:08 PM:
4:15:08 PM: Resolved config
4:15:08 PM: build:
4:15:08 PM: command: npm install && npm run build
4:15:08 PM: commandOrigin: config
4:15:08 PM: publish: /opt/build/repo/dist
4:15:08 PM: publishOrigin: config
4:15:08 PM: redirects:
4:15:08 PM: - from: /* status: 404 to: /404 redirectsOrigin: configCaching artifacts
4:15:08 PM: Started saving node modules
4:15:08 PM: Finished saving node modules
4:15:08 PM: Started saving build plugins
4:15:08 PM: Finished saving build plugins
4:15:08 PM: Started saving pip cache
4:15:08 PM: Finished saving pip cache
4:15:08 PM: Started saving emacs cask dependencies
4:15:08 PM: Finished saving emacs cask dependencies
4:15:08 PM: Started saving maven dependencies
4:15:08 PM: Finished saving maven dependencies
4:15:08 PM: Started saving boot dependencies
4:15:08 PM: Finished saving boot dependencies
4:15:08 PM: Started saving rust rustup cache
4:15:08 PM: Finished saving rust rustup cache
4:15:08 PM: Started saving go dependencies
4:15:08 PM: Finished saving go dependencies
4:15:08 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
4:15:08 PM: Creating deploy upload records
4:15:09 PM: Failing build: Failed to build site
4:15:09 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
4:15:09 PM: Finished processing build request in 17.323564584s


