Please help me. I'm getting a deployment error

Hi, I bought a gatsby theme from temaforest. I am doing something wrong during the installation. I am setting up the site and connecting it to the domain name. However, when I come to the admin panel setup, netfliy constantly gives an error. Can someone help me on Any desk? I would be grateful to you

4:52:11 PM: build-image version: a2d22d22e4555d1ef0a972ed14a0a4b366ad20c4 (focal)
4:52:11 PM: build-image tag: v4.16.3
4:52:11 PM: buildbot version: 4033cea21a3d9a6b51a0c8660e8b7502a7f7abfe
4:52:12 PM: Fetching cached dependencies
4:52:12 PM: Starting to download cache of 731.4MB
4:52:16 PM: Finished downloading cache in 4.287963198s
4:52:16 PM: Starting to extract cache
4:52:22 PM: Finished extracting cache in 6.36154631s
4:52:22 PM: Finished fetching cache in 10.747248698s
4:52:22 PM: Starting to prepare the repo for build
4:52:23 PM: Preparing Git Reference refs/heads/main
4:52:23 PM: Parsing package.json dependencies
4:52:24 PM: Different build dir detected, going to use the one specified in the Netlify configuration file: '' versus '/' in the Netlify UI
4:52:24 PM: Starting build script
4:52:24 PM: Installing dependencies
4:52:24 PM: Python version set to 2.7
4:52:25 PM: Started restoring cached Node.js version
4:52:25 PM: Finished restoring cached Node.js version
4:52:25 PM: Attempting Node.js version 'v14.15' from .nvmrc
4:52:26 PM: v14.15.5 is already installed.
4:52:26 PM: Now using node v14.15.5 (npm v6.14.11)
4:52:26 PM: Started restoring cached build plugins
4:52:26 PM: Finished restoring cached build plugins
4:52:26 PM: Attempting Ruby version 2.7.2, read from environment
4:52:26 PM: Using Ruby version 2.7.2
4:52:27 PM: Using PHP version 8.0
4:52:27 PM: Started restoring cached corepack dependencies
4:52:27 PM: mv: cannot move '/opt/build/cache/.node/corepack' to '/opt/buildhome/.node/corepack': No such file or directory
4:52:27 PM: Finished restoring cached corepack dependencies
4:52:27 PM: npm workspaces detected
4:52:27 PM: Started restoring workspace site node modules
4:52:27 PM: Finished restoring workspace site node modules
4:52:27 PM: Started restoring workspace root node modules
4:52:27 PM: Finished restoring workspace root node modules
4:52:27 PM: Bypassing sha validation. Running pre & post install scripts
4:52:27 PM: Installing npm packages using npm version 6.14.11
4:52:33 PM: npm WARN deprecated read-package-tree@5.3.1: The functionality that this package provided is now in @npmcli/arborist
4:52:42 PM: npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
4:52:43 PM: npm WARN deprecated har-validator@5.1.5: this library is no longer supported
4:52:43 PM: npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
4:52:47 PM: npm WARN deprecated readdir-scoped-modules@1.1.0: This functionality has been moved to @npmcli/fs
4:52:51 PM: npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
4:53:32 PM: npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
4:53:41 PM: npm WARN deprecated @types/vfile-message@2.0.0: This is a stub types definition. vfile-message provides its own type definitions, so you do not need this installed.
4:53:42 PM: npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
4:54:15 PM: npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
4:54:35 PM: npm WARN deprecated async-cache@1.1.0: No longer maintained. Use [lru-cache](http://npm.im/lru-cache) version 7.6 or higher, and provide an asynchronous `fetchMethod` option.
4:54:42 PM: npm WARN deprecated react-frame-component@5.2.5: Package is currently broken please use 5.2.4 for now until fix is rolled out
4:54:42 PM: npm WARN deprecated redux-devtools-extension@2.13.9: Package moved to @redux-devtools/extension.
4:55:17 PM: npm WARN rm not removing /opt/build/repo/node_modules/.bin/gatsby as it wasn't installed by /opt/build/repo/node_modules/gatsby
npm WARN rm not removing /opt/build/repo/node_modules/.bin/semver as it wasn't installed by /opt/build/repo/node_modules/semver
npm WARN rm not removing /opt/build/repo/node_modules/.bin/rimraf as it wasn't installed by /opt/build/repo/node_modules/rimraf
npm WARN rm not removing /opt/build/repo/node_modules/.bin/node-gyp as it wasn't installed by /opt/build/repo/node_modules/node-gyp
npm WARN rm not removing /opt/build/repo/node_modules/.bin/uuid as it wasn't installed by /opt/build/repo/node_modules/uuid
npm WARN rm not removing /opt/build/repo/node_modules/.bin/resolve as it wasn't installed by /opt/build/repo/node_modules/resolve
npm WARN rm not removing /opt/build/repo/node_modules/.bin/nopt as it wasn't installed by /opt/build/repo/node_modules/nopt
npm WARN rm not removing /opt/build/repo/node_modules/.bin/mkdirp as it wasn't installed by /opt/build/repo/node_modules/mkdirp
npm WARN rm not removing /opt/build/repo/node_modules/.bin/mime as it wasn't installed by /opt/build/repo/node_modules/mime
npm WARN rm not removing /opt/build/repo/node_modules/.bin/json5 as it wasn't installed by /opt/build/repo/node_modules/json5
npm notice created a lockfile as package-lock.json. You should commit this file.
4:55:17 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @lmdb/lmdb-darwin-arm64@2.5.3 (node_modules/lmdb/node_modules/@lmdb/lmdb-darwin-arm64):
4:55:17 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @lmdb/lmdb-darwin-arm64@2.5.3: wanted {"os":"darwin","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
4:55:17 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @lmdb/lmdb-win32-x64@2.5.3 (node_modules/lmdb/node_modules/@lmdb/lmdb-win32-x64):
4:55:17 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @lmdb/lmdb-win32-x64@2.5.3: wanted {"os":"win32","arch":"x64"} (current: {"os":"linux","arch":"x64"})
4:55:17 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @lmdb/lmdb-darwin-x64@2.5.3 (node_modules/lmdb/node_modules/@lmdb/lmdb-darwin-x64):
4:55:17 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @lmdb/lmdb-darwin-x64@2.5.3: wanted {"os":"darwin","arch":"x64"} (current: {"os":"linux","arch":"x64"})
4:55:17 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @lmdb/lmdb-linux-arm64@2.5.3 (node_modules/lmdb/node_modules/@lmdb/lmdb-linux-arm64):
4:55:17 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @lmdb/lmdb-linux-arm64@2.5.3: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
4:55:17 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @lmdb/lmdb-linux-arm@2.5.3 (node_modules/lmdb/node_modules/@lmdb/lmdb-linux-arm):
4:55:17 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @lmdb/lmdb-linux-arm@2.5.3: wanted {"os":"linux","arch":"arm"} (current: {"os":"linux","arch":"x64"})
4:55:17 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @msgpackr-extract/msgpackr-extract-win32-x64@2.2.0 (node_modules/msgpackr-extract/node_modules/@msgpackr-extract/msgpackr-extract-win32-x64):
4:55:17 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @msgpackr-extract/msgpackr-extract-win32-x64@2.2.0: wanted {"os":"win32","arch":"x64"} (current: {"os":"linux","arch":"x64"})
4:55:17 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @msgpackr-extract/msgpackr-extract-linux-arm@2.2.0 (node_modules/msgpackr-extract/node_modules/@msgpackr-extract/msgpackr-extract-linux-arm):
4:55:17 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @msgpackr-extract/msgpackr-extract-linux-arm@2.2.0: wanted {"os":"linux","arch":"arm"} (current: {"os":"linux","arch":"x64"})
4:55:17 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @msgpackr-extract/msgpackr-extract-darwin-x64@2.2.0 (node_modules/msgpackr-extract/node_modules/@msgpackr-extract/msgpackr-extract-darwin-x64):
4:55:17 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @msgpackr-extract/msgpackr-extract-darwin-x64@2.2.0: wanted {"os":"darwin","arch":"x64"} (current: {"os":"linux","arch":"x64"})
4:55:17 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @msgpackr-extract/msgpackr-extract-linux-arm64@2.2.0 (node_modules/msgpackr-extract/node_modules/@msgpackr-extract/msgpackr-extract-linux-arm64):
4:55:17 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @msgpackr-extract/msgpackr-extract-linux-arm64@2.2.0: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
4:55:17 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @msgpackr-extract/msgpackr-extract-darwin-arm64@2.2.0 (node_modules/msgpackr-extract/node_modules/@msgpackr-extract/msgpackr-extract-darwin-arm64):
4:55:17 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @msgpackr-extract/msgpackr-extract-darwin-arm64@2.2.0: wanted {"os":"darwin","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
4:55:17 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
4:55:17 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
4:55:17 PM: npm WARN notsup Unsupported engine for gatsby-plugin-netlify-cms@7.4.0: wanted: {"node":">=18.0.0"} (current: {"node":"14.15.5","npm":"6.14.11"})
4:55:17 PM: npm WARN notsup Not compatible with your version of node/npm: gatsby-plugin-netlify-cms@7.4.0
4:55:17 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @lmdb/lmdb-darwin-x64@2.5.2 (node_modules/@parcel/cache/node_modules/lmdb/node_modules/@lmdb/lmdb-darwin-x64):
4:55:17 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @lmdb/lmdb-darwin-x64@2.5.2: wanted {"os":"darwin","arch":"x64"} (current: {"os":"linux","arch":"x64"})
4:55:17 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @lmdb/lmdb-darwin-arm64@2.5.2 (node_modules/@parcel/cache/node_modules/lmdb/node_modules/@lmdb/lmdb-darwin-arm64):
4:55:17 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @lmdb/lmdb-darwin-arm64@2.5.2: wanted {"os":"darwin","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
4:55:17 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @lmdb/lmdb-linux-arm@2.5.2 (node_modules/@parcel/cache/node_modules/lmdb/node_modules/@lmdb/lmdb-linux-arm):
4:55:17 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @lmdb/lmdb-linux-arm@2.5.2: wanted {"os":"linux","arch":"arm"} (current: {"os":"linux","arch":"x64"})
4:55:17 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @lmdb/lmdb-linux-arm64@2.5.2 (node_modules/@parcel/cache/node_modules/lmdb/node_modules/@lmdb/lmdb-linux-arm64):
4:55:17 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @lmdb/lmdb-linux-arm64@2.5.2: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
4:55:17 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @lmdb/lmdb-win32-x64@2.5.2 (node_modules/@parcel/cache/node_modules/lmdb/node_modules/@lmdb/lmdb-win32-x64):
4:55:17 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @lmdb/lmdb-win32-x64@2.5.2: wanted {"os":"win32","arch":"x64"} (current: {"os":"linux","arch":"x64"})
4:55:17 PM: added 114 packages from 15 contributors, removed 1540 packages, updated 595 packages and audited 709 packages in 169.935s
4:55:17 PM: 90 packages are looking for funding
4:55:17 PM:   run `npm fund` for details
4:55:17 PM: found 6 vulnerabilities (2 moderate, 2 high, 2 critical)
4:55:17 PM:   run `npm audit fix` to fix them, or `npm audit` for details
4:55:17 PM: npm packages installed
4:55:17 PM: Started restoring cached go cache
4:55:17 PM: Finished restoring cached go cache
4:55:17 PM: go version go1.19.4 linux/amd64
4:55:18 PM: Detected 0 framework(s)
4:55:18 PM: Installing missing commands
4:55:18 PM: Verify run directory
4:55:18 PM: Section completed: initializing
4:55:19 PM: ​
4:55:19 PM:   Netlify Build                                                 
4:55:19 PM: ────────────────────────────────────────────────────────────────
4:55:19 PM: ​
4:55:19 PM: ❯ Version
4:55:19 PM:   @netlify/build 29.4.5
4:55:19 PM: ​
4:55:19 PM: ❯ Flags
4:55:19 PM:   baseRelDir: true
4:55:19 PM:   buildId: 63c2b36de0998f00080e85b0
4:55:19 PM:   deployId: 63c2b36de0998f00080e85b2
4:55:19 PM: ​
4:55:19 PM: ❯ Current directory
4:55:19 PM:   /opt/build/repo
4:55:19 PM: ​
4:55:19 PM: ❯ Config file
4:55:19 PM:   No config file was defined: using default values.
4:55:19 PM: ​
4:55:20 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
4:55:19 PM: ❯ Context
4:55:19 PM:   production
4:55:19 PM: ​
4:55:19 PM:   1. Build command from Netlify app                             
4:55:19 PM: ────────────────────────────────────────────────────────────────
4:55:19 PM: ​
4:55:19 PM: $ cd site && yarn build
4:55:19 PM: bash: yarn: command not found
4:55:19 PM: ​
4:55:19 PM:   "build.command" failed                                        
4:55:19 PM: ────────────────────────────────────────────────────────────────
4:55:19 PM: ​
4:55:19 PM:   Error message
4:55:19 PM:   Command failed with exit code 127: cd site && yarn build (https://ntl.fyi/exit-code-127)
4:55:19 PM: ​
4:55:19 PM:   Error location
4:55:19 PM:   In Build command from Netlify app:
4:55:19 PM:   cd site && yarn build
4:55:19 PM: ​
4:55:19 PM:   Resolved config
4:55:19 PM:   build:
4:55:19 PM:     base: /opt/build/repo
4:55:19 PM:     command: cd site && yarn build
4:55:19 PM:     commandOrigin: ui
4:55:19 PM:     environment:
4:55:19 PM:       - Test
4:55:19 PM:     publish: /opt/build/repo/site/public
4:55:19 PM:     publishOrigin: ui
4:55:19 PM: Caching artifacts
4:55:19 PM: Started saving workspace site node modules
4:55:19 PM: Finished saving workspace site node modules
4:55:19 PM: Started saving workspace root node modules
4:55:19 PM: Finished saving workspace root node modules
4:55:19 PM: Started saving build plugins
4:55:19 PM: Finished saving build plugins
4:55:19 PM: Started saving pip cache
4:55:19 PM: Finished saving pip cache
4:55:19 PM: Started saving emacs cask dependencies
4:55:19 PM: Finished saving emacs cask dependencies
4:55:19 PM: Started saving maven dependencies
4:55:19 PM: Finished saving maven dependencies
4:55:19 PM: Started saving boot dependencies
4:55:19 PM: Finished saving boot dependencies
4:55:19 PM: Started saving rust rustup cache
4:55:19 PM: Finished saving rust rustup cache
4:55:19 PM: Started saving go dependencies
4:55:19 PM: Finished saving go dependencies
4:55:19 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
4:55:20 PM: Failing build: Failed to build site
4:55:20 PM: Finished processing build request in 3m8.27117164s

Try changing your build command to npm run build.