Unable to deploy my react app

1:08:07 PM: Build ready to start

1:08:11 PM: build-image version: 72a309a113b53ef075815b129953617827965e48 (focal)

1:08:11 PM: build-image tag: v4.8.2

1:08:11 PM: buildbot version: 72ebfe61ef7a5152002962d9129cc52f5b1bb560

1:08:11 PM: Fetching cached dependencies

1:08:11 PM: Failed to fetch cache, continuing with build

1:08:11 PM: Starting to prepare the repo for build

1:08:11 PM: No cached dependencies found. Cloning fresh repo

1:08:11 PM: git clone GitHub - nrrpatel1114/moneyflow

1:08:11 PM: Preparing Git Reference refs/heads/main

1:08:12 PM: Parsing package.json dependencies

1:08:13 PM: Starting build script

1:08:13 PM: Installing dependencies

1:08:13 PM: Python version set to 2.7

1:08:13 PM: v16.15.1 is already installed.

1:08:14 PM: Now using node v16.15.1 (npm v8.11.0)

1:08:14 PM: Started restoring cached build plugins

1:08:14 PM: Finished restoring cached build plugins

1:08:14 PM: Attempting ruby version 2.7.2, read from environment

1:08:15 PM: Using ruby version 2.7.2

1:08:15 PM: Using PHP version 8.0

1:08:15 PM: No npm workspaces detected

1:08:15 PM: Started restoring cached node modules

1:08:15 PM: Finished restoring cached node modules

1:08:16 PM: Installing NPM modules using NPM version 8.11.0

1:08:16 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special

1:08:16 PM: npm WARN config location in the cache, and they are managed by

1:08:16 PM: npm WARN config cacache.

1:08:16 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special

1:08:16 PM: npm WARN config location in the cache, and they are managed by

1:08:16 PM: npm WARN config cacache.

1:08:18 PM: npm ERR! code ERESOLVE

1:08:18 PM: npm ERR! ERESOLVE could not resolve

1:08:18 PM: npm ERR!

1:08:18 PM: npm ERR! While resolving: react-lottie@1.2.3

1:08:18 PM: Creating deploy upload records

1:08:18 PM: npm ERR! Found: react@17.0.2

1:08:18 PM: npm ERR! node_modules/react

1:08:18 PM: npm ERR! react@“^17.0.2” from the root project

1:08:18 PM: npm ERR! peer react@“*” from @testing-library/react@11.2.7

1:08:18 PM: npm ERR! node_modules/@testing-library/react

1:08:18 PM: npm ERR! @testing-library/react@“^11.2.7” from the root project

1:08:18 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 1 (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)

1:08:18 PM: npm ERR! 7 more (mini-create-react-context, react-dom, react-modal, …)

1:08:18 PM: npm ERR!

1:08:18 PM: npm ERR! Could not resolve dependency:

1:08:18 PM: npm ERR! peer react@“^0.14.7 || ^15.0.0 || ^16.0.0” from react-lottie@1.2.3

1:08:18 PM: npm ERR! node_modules/react-lottie

1:08:18 PM: npm ERR! react-lottie@“^1.2.3” from the root project

1:08:18 PM: npm ERR!

1:08:18 PM: npm ERR! Conflicting peer dependency: react@16.14.0

1:08:18 PM: npm ERR! node_modules/react

1:08:18 PM: npm ERR! peer react@“^0.14.7 || ^15.0.0 || ^16.0.0” from react-lottie@1.2.3

1:08:18 PM: npm ERR! node_modules/react-lottie

1:08:18 PM: npm ERR! react-lottie@“^1.2.3” from the root project

1:08:18 PM: npm ERR!

1:08:18 PM: npm ERR! Fix the upstream dependency conflict, or retry

1:08:18 PM: npm ERR! this command with --force, or --legacy-peer-deps

1:08:18 PM: npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

1:08:18 PM: npm ERR!

1:08:18 PM: npm ERR! See /opt/buildhome/.npm/eresolve-report.txt for a full report.

1:08:18 PM: npm ERR! A complete log of this run can be found in:

1:08:18 PM: npm ERR! /opt/buildhome/.npm/_logs/2022-06-24T17_08_16_579Z-debug-0.log

1:08:18 PM: Error during NPM install

1:08:18 PM: Build was terminated: Build script returned non-zero exit code: 1

1:08:18 PM: Failing build: Failed to build site

1:08:18 PM: Finished processing build request in 7.497150015s


It also says
Production: main@HEAD failed
Failed during stage ‘building site’: Build script returned non-zero exit code: 1

Please check this: