Deploy failed: Failed during stage 'building site': Build script returned non-zero exit code: 1

Hello, I’m trying to deploy website for my school project.
Im having a issue with building…Can anyone help with this error code?

netlify site name. : https://gc-clay.netlify.app/
12:17:22 PM: Build ready to start
12:17:35 PM: build-image version: a13ca271c42226d886b5d1dc0da3d70cb6ac0627 (focal)
12:17:35 PM: build-image tag: v4.11.0
12:17:35 PM: buildbot version: e42ed94867e2d6aeb79f60a5d458aef8f8e9e784
12:17:35 PM: Fetching cached dependencies
12:17:35 PM: Starting to download cache of 92.7MB
12:17:36 PM: Finished downloading cache in 907.522983ms
12:17:36 PM: Starting to extract cache
12:17:37 PM: Finished extracting cache in 936.600721ms
12:17:37 PM: Finished fetching cache in 1.90767806s
12:17:37 PM: Starting to prepare the repo for build
12:17:37 PM: Preparing Git Reference refs/heads/master
12:17:40 PM: Parsing package.json dependencies
12:17:41 PM: Starting build script
12:17:41 PM: Installing dependencies
12:17:41 PM: Python version set to 2.7
12:17:41 PM: Started restoring cached node version
12:17:42 PM: Finished restoring cached node version
12:17:42 PM: v16.17.1 is already installed.
12:17:42 PM: Now using node v16.17.1 (npm v8.15.0)
12:17:42 PM: Started restoring cached build plugins
12:17:42 PM: Finished restoring cached build plugins
12:17:42 PM: Attempting ruby version 2.7.2, read from environment
12:17:43 PM: Using ruby version 2.7.2
12:17:43 PM: Using PHP version 8.0
12:17:43 PM: No npm workspaces detected
12:17:43 PM: Started restoring cached node modules
12:17:43 PM: Finished restoring cached node modules
12:17:44 PM: Installing NPM modules using NPM version 8.15.0
12:17:44 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
12:17:44 PM: npm WARN config location in the cache, and they are managed by
12:17:44 PM: npm WARN config cacache.
12:17:44 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
12:17:44 PM: npm WARN config location in the cache, and they are managed by
12:17:44 PM: npm WARN config cacache.
12:17:49 PM: added 27 packages, and audited 1488 packages in 5s
12:17:49 PM: 213 packages are looking for funding
12:17:49 PM: run npm fund for details
12:17:49 PM: 6 high severity vulnerabilities
12:17:49 PM: To address all issues (including breaking changes), run:
12:17:49 PM: npm audit fix --force
12:17:49 PM: Run npm audit for details.
12:17:49 PM: NPM modules installed
12:17:49 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
12:17:49 PM: npm WARN config location in the cache, and they are managed by
12:17:49 PM: npm WARN config cacache.
12:17:49 PM: Started restoring cached go cache
12:17:49 PM: Finished restoring cached go cache
12:17:49 PM: Installing Go version 1.17 (requested 1.17)
12:17:57 PM: unset GOOS;
12:17:57 PM: unset GOARCH;
12:17:57 PM: export GOROOT=‘/opt/buildhome/.gimme/versions/go1.17.linux.amd64’;
12:17:57 PM: export PATH=“/opt/buildhome/.gimme/versions/go1.17.linux.amd64/bin:${PATH}”;
12:17:57 PM: go version >&2;
12:17:57 PM: export GIMME_ENV=“/opt/buildhome/.gimme/env/go1.17.linux.amd64.env”
12:17:57 PM: go version go1.17 linux/amd64
12:17:57 PM: Installing missing commands
12:17:57 PM: Verify run directory
12:17:58 PM: ​
12:17:58 PM: ────────────────────────────────────────────────────────────────
12:17:58 PM: Netlify Build
12:17:58 PM: ────────────────────────────────────────────────────────────────
12:17:58 PM: ​
12:17:58 PM: ❯ Version
12:17:58 PM: @netlify/build 27.18.6
12:17:58 PM: ​
12:17:58 PM: ❯ Flags
12:17:58 PM: baseRelDir: true
12:17:58 PM: buildId: 63349dc201fda3008fd3e6ad
12:17:58 PM: deployId: 63349dc201fda3008fd3e6af
12:17:58 PM: ​
12:17:58 PM: ❯ Current directory
12:17:58 PM: /opt/build/repo
12:17:58 PM: ​
12:17:58 PM: ❯ Config file
12:17:58 PM: No config file was defined: using default values.
12:17:58 PM: ​
12:17:58 PM: ❯ Context
12:17:58 PM: production
12:17:58 PM: ​
12:17:58 PM: ────────────────────────────────────────────────────────────────
12:17:58 PM: 1. Build command from Netlify app
12:17:58 PM: ────────────────────────────────────────────────────────────────
12:17:58 PM: ​
12:17:58 PM: $ npm run build
12:17:59 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
12:17:59 PM: npm WARN config location in the cache, and they are managed by
12:17:59 PM: npm WARN config cacache.
12:17:59 PM: > react-website@0.1.0 build
12:17:59 PM: > react-scripts build
12:18:00 PM: Creating an optimized production build…
12:18:07 PM:
12:18:07 PM: Treating warnings as errors because process.env.CI = true.
12:18:07 PM: Most CI servers set it automatically.
12:18:07 PM:
12:18:07 PM: Failed to compile.
12:18:07 PM:
12:18:07 PM: [eslint]
12:18:07 PM: src/App.js
12:18:07 PM: Line 1:26: ‘useParams’ is defined but never used no-unused-vars
12:18:07 PM: Line 2:35: ‘Link’ is defined but never used no-unused-vars
12:18:08 PM: Creating deploy upload records
12:18:07 PM: src/components/Card.js
12:18:07 PM: Line 2:8: ‘Store’ is defined but never used no-unused-vars
12:18:07 PM: Line 4:10: ‘Link’ is defined but never used no-unused-vars
12:18:08 PM: 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:18:07 PM: Line 21:17: Redundant alt attribute. Screen-readers already announce img tags as an image. You don’t need to use the words image, photo, or picture (or any specified custom words) in the alt prop jsx-a11y/img-redundant-alt
12:18:07 PM: src/components/CardArt.js
12:18:07 PM: Line 1:17: ‘useState’ is defined but never used no-unused-vars
12:18:07 PM: Line 3:10: ‘Link’ is defined but never used no-unused-vars
12:18:07 PM: Line 3:16: ‘useParams’ is defined but never used no-unused-vars
12:18:07 PM: Line 13:7: Redundant alt attribute. Screen-readers already announce img tags as an image. You don’t need to use the words image, photo, or picture (or any specified custom words) in the alt prop jsx-a11y/img-redundant-alt
12:18:07 PM: src/pages/Bio.js
12:18:07 PM: Line 8:11: ‘bioText’ is assigned a value but never used no-unused-vars
12:18:07 PM: src/pages/Detail.js
12:18:07 PM: Line 1:10: ‘useState’ is defined but never used no-unused-vars
12:18:07 PM: src/pages/Gallery.js
12:18:07 PM: Line 82:34: The element button has an implicit role of button. Defining this explicitly is redundant and should be avoided jsx-a11y/no-redundant-roles
12:18:07 PM: src/pages/Store.js
12:18:07 PM: Line 8:8: ‘ModalFooter’ is defined but never used no-unused-vars
12:18:07 PM: Line 11:8: ‘Form’ is defined but never used no-unused-vars
12:18:07 PM: Line 12:8: ‘Button’ is defined but never used no-unused-vars
12:18:07 PM: Line 53:12: ‘show3’ is assigned a value but never used no-unused-vars
12:18:07 PM: Line 53:19: ‘setShow3’ is assigned a value but never used no-unused-vars
12:18:07 PM: Line 125:41: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images jsx-a11y/alt-text
12:18:07 PM: src/pages/Test.js
12:18:07 PM: Line 1:17: ‘useEffect’ is defined but never used no-unused-vars
12:18:07 PM: Line 1:28: ‘useState’ is defined but never used no-unused-vars
12:18:07 PM: Line 3:8: ‘axios’ is defined but never used no-unused-vars
12:18:07 PM: Line 4:8: ‘Card’ is defined but never used no-unused-vars
12:18:07 PM: Line 5:8: ‘Modal’ is defined but never used no-unused-vars
12:18:07 PM: Line 6:8: ‘ModalBody’ is defined but never used no-unused-vars
12:18:07 PM: Line 7:8: ‘ModalHeader’ is defined but never used no-unused-vars
12:18:07 PM: Line 8:8: ‘ModalFooter’ is defined but never used no-unused-vars
12:18:07 PM: Line 9:8: ‘ModalTitle’ is defined but never used no-unused-vars
12:18:07 PM: Line 10:8: ‘Container’ is defined but never used no-unused-vars
12:18:07 PM: Line 11:8: ‘Form’ is defined but never used no-unused-vars
12:18:07 PM: Line 12:8: ‘Button’ is defined but never used no-unused-vars
12:18:07 PM: ​
12:18:07 PM: ────────────────────────────────────────────────────────────────
12:18:07 PM: “build.command” failed
12:18:07 PM: ────────────────────────────────────────────────────────────────
12:18:07 PM: ​
12:18:07 PM: Error message
12:18:07 PM: Command failed with exit code 1: npm run build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
12:18:07 PM: ​
12:18:07 PM: Error location
12:18:07 PM: In Build command from Netlify app:
12:18:07 PM: npm run build
12:18:07 PM: ​
12:18:07 PM: Resolved config
12:18:07 PM: build:
12:18:07 PM: command: npm run build
12:18:07 PM: commandOrigin: ui
12:18:07 PM: environment:
12:18:07 PM: - NPM_FLAGS
12:18:07 PM: publish: /opt/build/repo/build
12:18:07 PM: publishOrigin: ui
12:18:08 PM: Caching artifacts
12:18:08 PM: Started saving node modules
12:18:08 PM: Finished saving node modules
12:18:08 PM: Started saving build plugins
12:18:08 PM: Finished saving build plugins
12:18:08 PM: Started saving pip cache
12:18:08 PM: Finished saving pip cache
12:18:08 PM: Started saving emacs cask dependencies
12:18:08 PM: Finished saving emacs cask dependencies
12:18:08 PM: Started saving maven dependencies
12:18:08 PM: Finished saving maven dependencies
12:18:08 PM: Started saving boot dependencies
12:18:08 PM: Finished saving boot dependencies
12:18:08 PM: Started saving rust rustup cache
12:18:08 PM: Finished saving rust rustup cache
12:18:08 PM: Started saving go dependencies
12:18:08 PM: Finished saving go dependencies
12:18:08 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
12:18:08 PM: Failing build: Failed to build site
12:18:08 PM: Finished processing build request in 32.840461136s

Change your build command to CI= npm run build.