Command failed with exit code 1: yarn build for coreui-free-react-admin-template

11:59:23 PM: Build ready to start
11:59:26 PM: build-image version: 0e2f4c52031ab562db66aec633308326e3b108d0 (focal)
11:59:26 PM: build-image tag: focal
11:59:26 PM: buildbot version: ed990b4b6588208e959ba45b6b7b05738f8b6004
11:59:26 PM: Fetching cached dependencies
11:59:26 PM: Failed to fetch cache, continuing with build
11:59:26 PM: Starting to prepare the repo for build
11:59:26 PM: No cached dependencies found. Cloning fresh repo
11:59:26 PM: git clone https://github.com/xxxxx/coreui-free-react-admin-template
11:59:27 PM: Preparing Git Reference refs/heads/main
11:59:27 PM: Parsing package.json dependencies
11:59:28 PM: Starting build script
11:59:28 PM: Installing dependencies
11:59:28 PM: Python version set to 2.7
11:59:29 PM: Downloading and installing node v16.16.0...
11:59:29 PM: Downloading https://nodejs.org/dist/v16.16.0/node-v16.16.0-linux-x64.tar.xz...
11:59:30 PM: Computing checksum with sha256sum
11:59:30 PM: Checksums matched!
11:59:33 PM: Now using node v16.16.0 (npm v8.11.0)
11:59:33 PM: Started restoring cached build plugins
11:59:33 PM: Finished restoring cached build plugins
11:59:34 PM: Attempting ruby version 2.7.2, read from environment
11:59:35 PM: Using ruby version 2.7.2
11:59:36 PM: Using PHP version 8.0
11:59:36 PM: Started restoring cached yarn cache
11:59:36 PM: Finished restoring cached yarn cache
11:59:37 PM: No yarn workspaces detected
11:59:37 PM: Started restoring cached node modules
11:59:37 PM: Finished restoring cached node modules
11:59:37 PM: Installing NPM modules using Yarn version 1.22.10
11:59:37 PM: npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
11:59:37 PM: npm WARN config location in the cache, and they are managed by
11:59:37 PM: npm WARN config     [`cacache`](http://npm.im/cacache).
11:59:38 PM: yarn install v1.22.10
11:59:38 PM: [1/5] Validating package.json...
11:59:38 PM: [2/5] Resolving packages...
11:59:39 PM: [3/5] Fetching packages...
12:00:08 AM: info fsevents@2.3.2: The platform "linux" is incompatible with this module.
12:00:08 AM: info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
12:00:08 AM: [4/5] Linking dependencies...
12:00:08 AM: warning "@coreui/chartjs > @coreui/coreui@4.0.0" has unmet peer dependency "@popperjs/core@^2.9.2".
12:00:08 AM: warning " > @coreui/coreui@4.1.5" has unmet peer dependency "@popperjs/core@^2.11.2".
12:00:08 AM: warning " > @coreui/icons-react@2.0.1" has incorrect peer dependency "react@^17".
12:00:08 AM: warning " > @coreui/icons-react@2.0.1" has incorrect peer dependency "react-dom@^17".
12:00:08 AM: warning " > @coreui/react-chartjs@2.0.3" has incorrect peer dependency "react@^17".
12:00:08 AM: warning " > @coreui/react-chartjs@2.0.3" has incorrect peer dependency "react-dom@^17".
12:00:08 AM: warning " > @testing-library/user-event@14.2.0" has unmet peer dependency "@testing-library/dom@>=7.21.4".
12:00:08 AM: warning " > eslint-config-prettier@8.5.0" has unmet peer dependency "eslint@>=7.0.0".
12:00:08 AM: warning " > eslint-plugin-prettier@4.0.0" has unmet peer dependency "eslint@>=7.28.0".
12:00:08 AM: warning "react-scripts > eslint-config-react-app > eslint-plugin-flowtype@8.0.3" has unmet peer dependency "@babel/plugin-syntax-flow@^7.14.5".
12:00:08 AM: warning "react-scripts > eslint-config-react-app > eslint-plugin-flowtype@8.0.3" has unmet peer dependency "@babel/plugin-transform-react-jsx@^7.14.9".
12:00:08 AM: warning "react-scripts > react-dev-utils > fork-ts-checker-webpack-plugin@6.5.2" has unmet peer dependency "typescript@>= 2.7".
12:00:08 AM: warning "react-scripts > eslint-config-react-app > @typescript-eslint/eslint-plugin > tsutils@3.21.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
12:00:22 AM: [5/5] Building fresh packages...
12:00:23 AM: Done in 45.23s.
12:00:23 AM: NPM modules installed using Yarn
12:00:23 AM: Started restoring cached go cache
12:00:23 AM: Finished restoring cached go cache
12:00:23 AM: Installing Go version 1.17 (requested 1.17)
12:00:30 AM: unset GOOS;
12:00:30 AM: unset GOARCH;
12:00:30 AM: export GOROOT='/opt/buildhome/.gimme/versions/go1.17.linux.amd64';
12:00:30 AM: export PATH="/opt/buildhome/.gimme/versions/go1.17.linux.amd64/bin:${PATH}";
12:00:30 AM: go version >&2;
12:00:30 AM: export GIMME_ENV="/opt/buildhome/.gimme/env/go1.17.linux.amd64.env"
12:00:30 AM: go version go1.17 linux/amd64
12:00:30 AM: Installing missing commands
12:00:30 AM: Verify run directory
12:00:32 AM: ​
12:00:32 AM: ────────────────────────────────────────────────────────────────
12:00:32 AM:   Netlify Build                                                 
12:00:32 AM: ────────────────────────────────────────────────────────────────
12:00:32 AM: ​
12:00:32 AM: ❯ Version
12:00:32 AM:   @netlify/build 27.3.3
12:00:32 AM: ​
12:00:32 AM: ❯ Flags
12:00:32 AM:   baseRelDir: true
12:00:32 AM:   buildId: 62c8626b8bb9fd492e6bf52c
12:00:32 AM:   deployId: 62c8626b8bb9fd492e6bf52e
12:00:32 AM: ​
12:00:32 AM: ❯ Current directory
12:00:32 AM:   /opt/build/repo
12:00:32 AM: ​
12:00:32 AM: ❯ Config file
12:00:32 AM:   No config file was defined: using default values.
12:00:32 AM: ​
12:00:32 AM: ❯ Context
12:00:32 AM:   production
12:00:32 AM: ​
12:00:32 AM: ────────────────────────────────────────────────────────────────
12:00:32 AM:   1. Build command from Netlify app                             
12:00:32 AM: ────────────────────────────────────────────────────────────────
12:00:32 AM: ​
12:00:32 AM: $ yarn build
12:00:32 AM: yarn run v1.22.10
12:00:32 AM: $ react-scripts build
12:00:34 AM: Creating an optimized production build...
12:02:02 AM: 
12:02:02 AM: Treating warnings as errors because process.env.CI = true.
12:02:02 AM: Most CI servers set it automatically.
12:02:02 AM: 
12:02:02 AM: Failed to compile.
12:02:02 AM: 
12:02:02 AM: Warning
12:02:02 AM: (7:38212) autoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated.
12:02:03 AM: error Command failed with exit code 1. (https://ntl.fyi/exit-code-1)
12:02:03 AM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
12:02:03 AM: ​
12:02:03 AM: ────────────────────────────────────────────────────────────────
12:02:03 AM:   "build.command" failed                                        
12:02:03 AM: ────────────────────────────────────────────────────────────────
12:02:03 AM: ​
12:02:03 AM:   Error message
12:02:03 AM:   Command failed with exit code 1: yarn build (https://ntl.fyi/exit-code-1)
12:02:03 AM: ​
12:02:03 AM:   Error location
12:02:03 AM:   In Build command from Netlify app:
12:02:03 AM:   yarn build
12:02:03 AM: ​
12:02:03 AM:   Resolved config
12:02:03 AM:   build:
12:02:03 AM:     command: yarn build
12:02:03 AM:     commandOrigin: ui
12:02:03 AM:     publish: /opt/build/repo/build
12:02:03 AM:     publishOrigin: ui
12:02:03 AM: Caching artifacts
12:02:03 AM: Started saving node modules
12:02:03 AM: Finished saving node modules
12:02:03 AM: Started saving build plugins
12:02:03 AM: Finished saving build plugins
12:02:03 AM: Started saving yarn cache
12:02:07 AM: Finished saving yarn cache
12:02:07 AM: Started saving pip cache
12:02:07 AM: Finished saving pip cache
12:02:07 AM: Started saving emacs cask dependencies
12:02:07 AM: Finished saving emacs cask dependencies
12:02:07 AM: Started saving maven dependencies
12:02:07 AM: Finished saving maven dependencies
12:02:07 AM: Started saving boot dependencies
12:02:07 AM: Finished saving boot dependencies
12:02:07 AM: Started saving rust rustup cache
12:02:07 AM: Finished saving rust rustup cache
12:02:07 AM: Started saving go dependencies
12:02:07 AM: Finished saving go dependencies
12:02:09 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
12:02:09 AM: Creating deploy upload records
12:02:09 AM: Failing build: Failed to build site
12:02:09 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
12:02:09 AM: Finished processing build request in 2m43.606102658s

Environment set:
CI = false
Done