我只想在 Netlify 上部署我的网站 但它不起作用我什至使用 CI= npm run build 这个命令 请帮帮我TT 我真的不知道为什么它不起作用
这是我的错误日志
8:29:34 PM: ────────────────────────────────────────────────────────────────
8:29:34 PM: "build.command" failed
8:29:34 PM: ────────────────────────────────────────────────────────────────
8:29:34 PM:
8:29:34 PM: Error message
8:29:34 PM: Command failed with exit code 1: CI= npm run build
8:29:34 PM:
8:29:34 PM: Error location
8:29:34 PM: In Build command from Netlify app:
8:29:34 PM: CI= npm run build
8:29:34 PM:
8:29:34 PM: Resolved config
8:29:34 PM: build:
8:29:34 PM: base: /opt/build/repo/project-cats/cat-app-client
8:29:34 PM: command: CI= npm run build
8:29:34 PM: commandOrigin: ui
8:29:34 PM: publish: /opt/build/repo/project-cats/cat-app-client/build
8:29:34 PM: Caching artifacts
8:29:34 PM: Started saving node modules
8:29:34 PM: Finished saving node modules
8:29:34 PM: Started saving build plugins
8:29:34 PM: Finished saving build plugins
8:29:34 PM: Started saving yarn cache
8:29:34 PM: Finished saving yarn cache
8:29:34 PM: Started saving pip cache
8:29:34 PM: Finished saving pip cache
8:29:34 PM: Started saving emacs cask dependencies
8:29:34 PM: Finished saving emacs cask dependencies
8:29:34 PM: Started saving maven dependencies
8:29:34 PM: Finished saving maven dependencies
8:29:34 PM: Started saving boot dependencies
8:29:34 PM: Finished saving boot dependencies
8:29:34 PM: Started saving rust rustup cache
8:29:34 PM: Finished saving rust rustup cache
8:29:34 PM: Started saving go dependencies
8:29:34 PM: Finished saving go dependencies
8:29:36 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
8:29:36 PM: Creating deploy upload records
8:29:36 PM: Failing build: Failed to build site
8:29:37 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
8:29:37 PM: Finished processing build request in 1m30.394935204s