How to solve this error my website deployment?

8:25:00 PM: build-image version: 0143b4617dd9b5b3faed2aefa29c54a846e69aae (focal)

8:25:00 PM: buildbot version: 24f7c9fcfdc0e642a0e84524831960fde1f386d1

8:25:00 PM: Fetching cached dependencies

8:25:00 PM: Failed to fetch cache, continuing with build

8:25:00 PM: Starting to prepare the repo for build

8:25:01 PM: No cached dependencies found. Cloning fresh repo

8:25:01 PM: git clone --filter=blob:none GitHub - monojkumar2001/nft-frontend

8:25:01 PM: Preparing Git Reference refs/heads/main

8:25:03 PM: Starting to install dependencies

8:25:03 PM: Python version set to 3.8

8:25:03 PM: Attempting Ruby version 2.7.2, read from environment

8:25:04 PM: Using Ruby version 2.7.2

8:25:04 PM: Started restoring cached go cache

8:25:04 PM: Finished restoring cached go cache

8:25:06 PM: go version go1.19.13 linux/amd64

8:25:06 PM: Using PHP version 8.0

8:25:07 PM: v18.18.0 is already installed.

8:25:07 PM: Now using node v18.18.0 (npm v9.8.1)

8:25:07 PM: Enabling Node.js Corepack

8:25:07 PM: Started restoring cached build plugins

8:25:07 PM: Finished restoring cached build plugins

8:25:07 PM: Started restoring cached corepack dependencies

8:25:07 PM: Finished restoring cached corepack dependencies

8:25:07 PM: No npm workspaces detected

8:25:07 PM: Started restoring cached node modules

8:25:07 PM: Finished restoring cached node modules

8:25:08 PM: Installing npm packages using npm version 9.8.1

8:25:09 PM: npm ERR! code ERESOLVE

8:25:09 PM: npm ERR! ERESOLVE could not resolve

8:25:09 PM: npm ERR!

8:25:09 PM: npm ERR! While resolving: react-typed@1.2.0

8:25:09 PM: npm ERR! Found: react@17.0.2

8:25:09 PM: npm ERR! node_modules/react

8:25:09 PM: npm ERR! react@“^17.0.0” from the root project

8:25:09 PM: npm ERR! peer react@“>=16.8.0” from @emotion/react@11.10.5

8:25:09 PM: npm ERR! node_modules/@emotion/react

8:25:09 PM: npm ERR! @emotion/react@“^11.10.5” from the root project

8:25:09 PM: npm ERR! peer @emotion/react@“^11.0.0-rc.0” from @emotion/styled@11.10.5

8:25:09 PM: npm ERR! node_modules/@emotion/styled

8:25:09 PM: npm ERR! @emotion/styled@“^11.10.5” from the root project

8:25:09 PM: npm ERR! 3 more (@mui/material, @mui/styled-engine, @mui/system)

8:25:09 PM: npm ERR! 3 more (@mui/material, @mui/styled-engine, @mui/system)

8:25:09 PM: npm ERR! 27 more (@emotion/styled, …)

8:25:09 PM: npm ERR!

8:25:09 PM: npm ERR! Could not resolve dependency:

8:25:09 PM: npm ERR! peer react@“^16.3.0” from react-typed@1.2.0

8:25:09 PM: npm ERR! node_modules/react-typed

8:25:09 PM: npm ERR! react-typed@“^1.2.0” from the root project

8:25:09 PM: npm ERR!

8:25:09 PM: npm ERR! Conflicting peer dependency: react@16.14.0

8:25:09 PM: npm ERR! node_modules/react

8:25:09 PM: npm ERR! peer react@“^16.3.0” from react-typed@1.2.0

8:25:09 PM: npm ERR! node_modules/react-typed

8:25:09 PM: npm ERR! react-typed@“^1.2.0” from the root project

8:25:09 PM: npm ERR!

8:25:09 PM: npm ERR! Fix the upstream dependency conflict, or retry

8:25:09 PM: npm ERR! this command with --force or --legacy-peer-deps

8:25:09 PM: npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

8:25:09 PM: npm ERR!

8:25:09 PM: npm ERR!

8:25:09 PM: npm ERR! For a full report see:

8:25:09 PM: npm ERR! /opt/buildhome/.npm/_logs/2023-10-07T14_25_08_213Z-eresolve-report.txt

8:25:09 PM: npm ERR! A complete log of this run can be found in: /opt/buildhome/.npm/_logs/2023-10-07T14_25_08_213Z-debug-0.log

8:25:09 PM: Error during npm install

8:25:09 PM: Build was terminated: dependency_installation script returned non-zero exit code: 1

8:25:09 PM: Failing build: Failed to install dependencies

8:25:09 PM: Failed during stage “Install dependencies”: dependency_installation script returned non-zero exit code: 1

Hi @monojkumar , welcome
If possible can you share the repository of your site so that I help with the debugging.
Thanks.

1 Like

Hi @monojkumar,

As @hrishikesh shared, it’s a peer dependency.
One of your packages has the wrong version, you should check that.

Gr,

Andy