My build failed while trying to deploy a react app from github. Could someone please help me understand why?
12:38:23 AM: Build ready to start
12:38:26 AM: build-image version: d7b3dbfb0846505993c9a131894d1858074c90b4 (focal)
12:38:26 AM: build-image tag: v4.10.1
12:38:26 AM: buildbot version: f45292fab0b32cea549baa8489f553abb9d888be
12:38:26 AM: Fetching cached dependencies
12:38:26 AM: Failed to fetch cache, continuing with build
12:38:26 AM: Starting to prepare the repo for build
12:38:26 AM: No cached dependencies found. Cloning fresh repo
12:38:26 AM: git clone GitHub - vedant-shah/vedant-portfolio
12:38:27 AM: Preparing Git Reference refs/heads/master
12:38:27 AM: Parsing package.json dependencies
12:38:28 AM: Starting build script
12:38:28 AM: Installing dependencies
12:38:28 AM: Python version set to 2.7
12:38:29 AM: Downloading and installing node v16.17.0…
12:38:29 AM: Downloading https://nodejs.org/dist/v16.17.0/node-v16.17.0-linux-x64.tar.xz…
12:38:30 AM: Computing checksum with sha256sum
12:38:30 AM: Checksums matched!
12:38:35 AM: Now using node v16.17.0 (npm v8.15.0)
12:38:35 AM: Started restoring cached build plugins
12:38:35 AM: Finished restoring cached build plugins
12:38:35 AM: Attempting ruby version 2.7.2, read from environment
12:38:36 AM: Using ruby version 2.7.2
12:38:36 AM: Using PHP version 8.0
12:38:36 AM: No npm workspaces detected
12:38:36 AM: Started restoring cached node modules
12:38:36 AM: Finished restoring cached node modules
12:38:37 AM: Installing NPM modules using NPM version 8.15.0
12:38:37 AM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
12:38:37 AM: npm WARN config location in the cache, and they are managed by
12:38:37 AM: npm WARN config cacache
12:38:37 AM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
12:38:37 AM: npm WARN config location in the cache, and they are managed by
12:38:37 AM: npm WARN config cacache
12:38:43 AM: 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: US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
12:38:50 AM: npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
12:38:50 AM: npm WARN deprecated @babel/polyfill@7.12.1: This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (@babel/polyfill · Babel) for more information.
12:38:56 AM: 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.
12:38:58 AM: added 1644 packages, and audited 1645 packages in 21s
12:38:58 AM: 211 packages are looking for funding
12:38:58 AM: run npm fund
for details
12:38:58 AM: 6 high severity vulnerabilities
12:38:58 AM: To address all issues (including breaking changes), run:
12:38:58 AM: npm audit fix --force
12:38:58 AM: Run npm audit
for details.
12:38:58 AM: NPM modules installed
12:38:58 AM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
12:38:58 AM: npm WARN config location in the cache, and they are managed by
12:38:58 AM: npm WARN config cacache
12:38:58 AM: Started restoring cached go cache
12:38:58 AM: Finished restoring cached go cache
12:38:58 AM: Installing Go version 1.17 (requested 1.17)
12:39:02 AM: unset GOOS;
12:39:02 AM: unset GOARCH;
12:39:02 AM: export GOROOT=‘/opt/buildhome/.gimme/versions/go1.17.linux.amd64’;
12:39:02 AM: export PATH=“/opt/buildhome/.gimme/versions/go1.17.linux.amd64/bin:${PATH}”;
12:39:02 AM: go version >&2;
12:39:02 AM: export GIMME_ENV=“/opt/buildhome/.gimme/env/go1.17.linux.amd64.env”
12:39:02 AM: go version go1.17 linux/amd64
12:39:02 AM: Installing missing commands
12:39:02 AM: Verify run directory
12:39:03 AM:
12:39:03 AM: ────────────────────────────────────────────────────────────────
12:39:03 AM: Netlify Build
12:39:03 AM: ────────────────────────────────────────────────────────────────
12:39:03 AM:
12:39:03 AM: ❯ Version
12:39:03 AM: @netlify/build 27.15.7
12:39:03 AM:
12:39:03 AM: ❯ Flags
12:39:03 AM: baseRelDir: true
12:39:03 AM: buildId: 6307c8a7a6fb450008379659
12:39:03 AM: deployId: 6307c8a7a6fb45000837965b
12:39:03 AM:
12:39:03 AM: ❯ Current directory
12:39:03 AM: /opt/build/repo
12:39:03 AM:
12:39:03 AM: ❯ Config file
12:39:03 AM: No config file was defined: using default values.
12:39:03 AM:
12:39:03 AM: ❯ Context
12:39:03 AM: production
12:39:03 AM:
12:39:03 AM: ────────────────────────────────────────────────────────────────
12:39:03 AM: 1. Build command from Netlify app
12:39:03 AM: ────────────────────────────────────────────────────────────────
12:39:03 AM:
12:39:03 AM: $ npm run build
12:39:04 AM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
12:39:04 AM: npm WARN config location in the cache, and they are managed by
12:39:04 AM: npm WARN config cacache
12:39:04 AM: > test@0.1.0 build
12:39:04 AM: > react-scripts build
12:39:05 AM: Creating an optimized production build…
12:39:22 AM:
12:39:22 AM: Treating warnings as errors because process.env.CI = true.
12:39:22 AM: Most CI servers set it automatically.
12:39:22 AM:
12:39:22 AM: Failed to compile.
12:39:22 AM:
12:39:22 AM: Warning
12:39:22 AM: (23:77691) autoprefixer: Replace transition-property to transition, because Autoprefixer could not support any cases of transition-property and other transition-*
12:39:22 AM:
12:39:22 AM: ────────────────────────────────────────────────────────────────
12:39:22 AM: “build.command” failed
12:39:22 AM: ────────────────────────────────────────────────────────────────
12:39:22 AM:
12:39:22 AM: Error message
12:39:22 AM: Command failed with exit code 1: npm run build
12:39:22 AM:
12:39:22 AM: Error location
12:39:22 AM: In Build command from Netlify app:
12:39:22 AM: npm run build
12:39:22 AM:
12:39:22 AM: Resolved config
12:39:22 AM: build:
12:39:22 AM: command: npm run build
12:39:22 AM: commandOrigin: ui
12:39:22 AM: publish: /opt/build/repo/build
12:39:22 AM: publishOrigin: ui
12:39:22 AM: Caching artifacts
12:39:22 AM: Started saving node modules
12:39:22 AM: Finished saving node modules
12:39:22 AM: Started saving build plugins
12:39:22 AM: Finished saving build plugins
12:39:22 AM: Started saving pip cache
12:39:22 AM: Finished saving pip cache
12:39:22 AM: Started saving emacs cask dependencies
12:39:22 AM: Finished saving emacs cask dependencies
12:39:22 AM: Started saving maven dependencies
12:39:22 AM: Finished saving maven dependencies
12:39:23 AM: Creating deploy upload records
12:39:22 AM: Started saving boot dependencies
12:39:22 AM: Finished saving boot dependencies
12:39:22 AM: Started saving rust rustup cache
12:39:22 AM: Finished saving rust rustup cache
12:39:24 AM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2
12:39:22 AM: Started saving go dependencies
12:39:22 AM: Finished saving go dependencies
12:39:23 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
12:39:24 AM: Failing build: Failed to build site
12:39:24 AM: Finished processing build request in 57.72391276s