Deploy failed to Publish website

I recently publish my app on netlify but I was getting the error below

Kindly advise on what to do

12:32:10 AM: Build ready to start
12:32:12 AM: build-image version: 72a309a113b53ef075815b129953617827965e48 (focal)
12:32:12 AM: build-image tag: v4.8.2
12:32:12 AM: buildbot version: 515e5c33287d8b909c004fcf2e460e8645e8c1c6
12:32:12 AM: Fetching cached dependencies
12:32:12 AM: Failed to fetch cache, continuing with build
12:32:12 AM: Starting to prepare the repo for build
12:32:13 AM: No cached dependencies found. Cloning fresh repo
12:32:13 AM: git clone https://github.com/femakin/CreateTributeFrontend
12:32:15 AM: Preparing Git Reference refs/heads/main
12:32:16 AM: Parsing package.json dependencies
12:32:17 AM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'create-tribute' versus '/' in the Netlify UI
12:32:17 AM: Starting build script
12:32:17 AM: Installing dependencies
12:32:17 AM: Python version set to 2.7
12:32:18 AM: v16.15.1 is already installed.
12:32:18 AM: Now using node v16.15.1 (npm v8.11.0)
12:32:18 AM: Started restoring cached build plugins
12:32:18 AM: Finished restoring cached build plugins
12:32:18 AM: Attempting ruby version 2.7.2, read from environment
12:32:19 AM: Using ruby version 2.7.2
12:32:19 AM: Using PHP version 8.0
12:32:20 AM: No npm workspaces detected
12:32:20 AM: Started restoring cached node modules
12:32:20 AM: Finished restoring cached node modules
12:32:20 AM: Installing NPM modules using NPM version 8.11.0
12:32:20 AM: npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
12:32:20 AM: npm WARN config location in the cache, and they are managed by
12:32:20 AM: npm WARN config     [`cacache`](http://npm.im/cacache).
12:32:21 AM: npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
12:32:21 AM: npm WARN config location in the cache, and they are managed by
12:32:21 AM: npm WARN config     [`cacache`](http://npm.im/cacache).
12:32:22 AM: npm ERR! code ERESOLVE
12:32:22 AM: npm ERR! ERESOLVE could not resolve
12:32:22 AM: npm ERR!
12:32:22 AM: Creating deploy upload records
12:32:22 AM: npm ERR! While resolving: @material-ui/core@5.0.0-beta.5
12:32:22 AM: npm ERR! Found: react@18.2.0
12:32:22 AM: npm ERR! node_modules/react
12:32:22 AM: npm ERR!   react@"^18.2.0" from the root project
12:32:22 AM: npm ERR!   peer react@">=16.8.0" from @emotion/react@11.9.3
12:32:23 AM: Failed during stage 'building site': Build script returned non-zero exit code: 1 (https://ntl.fyi/exit-code-1)
12:32:22 AM: npm ERR!   node_modules/@emotion/react
12:32:22 AM: npm ERR!     @emotion/react@"^11.9.3" from the root project
12:32:22 AM: npm ERR!     peer @emotion/react@"^11.0.0-rc.0" from @emotion/styled@11.9.3
12:32:22 AM: npm ERR!     node_modules/@emotion/styled
12:32:22 AM: npm ERR!       @emotion/styled@"^11.9.3" from the root project
12:32:22 AM: npm ERR!       7 more (@material-ui/core, @material-ui/system, ...)
12:32:22 AM: npm ERR!     7 more (@material-ui/core, @material-ui/system, ...)
12:32:22 AM: npm ERR!   29 more (@emotion/styled, @mui/base, @mui/icons-material, ...)
12:32:22 AM: npm ERR!
12:32:22 AM: npm ERR! Could not resolve dependency:
12:32:22 AM: npm ERR! peer react@"^17.0.2" from @material-ui/core@5.0.0-beta.5
12:32:22 AM: npm ERR! node_modules/@material-ui/core
12:32:22 AM: npm ERR!   @material-ui/core@"^5.0.0-beta.5" from the root project
12:32:22 AM: npm ERR!
12:32:22 AM: npm ERR! Conflicting peer dependency: react@17.0.2
12:32:22 AM: npm ERR! node_modules/react
12:32:22 AM: npm ERR!   peer react@"^17.0.2" from @material-ui/core@5.0.0-beta.5
12:32:22 AM: npm ERR!   node_modules/@material-ui/core
12:32:22 AM: npm ERR!     @material-ui/core@"^5.0.0-beta.5" from the root project
12:32:22 AM: npm ERR!
12:32:22 AM: npm ERR! Fix the upstream dependency conflict, or retry
12:32:22 AM: npm ERR! this command with --force, or --legacy-peer-deps
12:32:22 AM: npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
12:32:22 AM: npm ERR!
12:32:22 AM: npm ERR! See /opt/buildhome/.npm/eresolve-report.txt for a full report.
12:32:22 AM: npm ERR! A complete log of this run can be found in:
12:32:22 AM: npm ERR!     /opt/buildhome/.npm/_logs/2022-06-30T23_32_21_273Z-debug-0.log
12:32:22 AM: Error during NPM install
12:32:22 AM: Build was terminated: Build script returned non-zero exit code: 1
12:32:22 AM: Failing build: Failed to build site
12:32:23 AM: Finished processing build request in 10.474942029s

Probably this post will help

1 Like