9:37:14 AM: Waiting for other deploys from your team to complete. Check the queue: Netlify App
9:37:20 AM: build-image version: c0621868af5001023389eeaa9dbfbbaf313f67e2 (focal)
9:37:20 AM: buildbot version: c0621868af5001023389eeaa9dbfbbaf313f67e2
9:37:20 AM: Fetching cached dependencies
9:37:20 AM: Failed to fetch cache, continuing with build
9:37:20 AM: Starting to prepare the repo for build
9:37:21 AM: No cached dependencies found. Cloning fresh repo
9:37:21 AM: git clone --filter=blob:none GitHub - shalinivyas/_portfolio_
9:37:22 AM: Preparing Git Reference refs/heads/main
9:37:22 AM: Parsing package.json dependencies
9:37:24 AM: Starting build script
9:37:24 AM: Installing dependencies
9:37:24 AM: Python version set to 2.7
9:37:24 AM: v16.19.1 is already installed.
9:37:24 AM: Now using node v16.19.1 (npm v8.19.3)
9:37:24 AM: Enabling Node.js Corepack
9:37:24 AM: Started restoring cached build plugins
9:37:24 AM: Finished restoring cached build plugins
9:37:25 AM: Attempting Ruby version 2.7.2, read from environment
9:37:25 AM: Using Ruby version 2.7.2
9:37:25 AM: Using PHP version 8.0
9:37:25 AM: Started restoring cached corepack dependencies
9:37:25 AM: Finished restoring cached corepack dependencies
9:37:25 AM: No npm workspaces detected
9:37:25 AM: Started restoring cached node modules
9:37:25 AM: Finished restoring cached node modules
9:37:26 AM: Installing npm packages using npm version 8.19.3
9:37:27 AM: npm ERR! code ERESOLVE
9:37:27 AM: npm ERR! ERESOLVE could not resolve
9:37:27 AM: npm ERR!
9:37:27 AM: npm ERR! While resolving: react-typed@1.2.0
9:37:27 AM: npm ERR! Found: react@17.0.2
9:37:27 AM: Failed during stage ‘building site’: Build script returned non-zero exit code: 1 (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
9:37:27 AM: npm ERR! node_modules/react
9:37:27 AM: npm ERR! react@“^17.0.2” from the root project
9:37:27 AM: npm ERR! peer react@“>=16.x” from @fortawesome/react-fontawesome@0.1.14
9:37:27 AM: npm ERR! node_modules/@fortawesome/react-fontawesome
9:37:27 AM: npm ERR! @fortawesome/react-fontawesome@“^0.1.14” from the root project
9:37:27 AM: npm ERR! 6 more (@testing-library/react, react-dom, react-hook-form, …)
9:37:27 AM: npm ERR!
9:37:27 AM: npm ERR! Could not resolve dependency:
9:37:27 AM: npm ERR! peer react@“^16.3.0” from react-typed@1.2.0
9:37:27 AM: npm ERR! node_modules/react-typed
9:37:27 AM: npm ERR! react-typed@“^1.2.0” from the root project
9:37:27 AM: npm ERR!
9:37:27 AM: npm ERR! Conflicting peer dependency: react@16.14.0
9:37:27 AM: npm ERR! node_modules/react
9:37:27 AM: npm ERR! peer react@“^16.3.0” from react-typed@1.2.0
9:37:27 AM: npm ERR! node_modules/react-typed
9:37:27 AM: npm ERR! react-typed@“^1.2.0” from the root project
9:37:27 AM: npm ERR!
9:37:27 AM: npm ERR! Fix the upstream dependency conflict, or retry
9:37:27 AM: npm ERR! this command with --force, or --legacy-peer-deps
9:37:27 AM: npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
9:37:27 AM: npm ERR!
9:37:27 AM: npm ERR! See /opt/buildhome/.npm/eresolve-report.txt for a full report.
9:37:27 AM: npm ERR! A complete log of this run can be found in:
9:37:27 AM: npm ERR! /opt/buildhome/.npm/_logs/2023-02-27T15_37_26_272Z-debug-0.log
9:37:27 AM: Error during npm install
9:37:27 AM: Build was terminated: Build script returned non-zero exit code: 1
9:37:27 AM: Failing build: Failed to build site
9:37:27 AM: Finished processing build request in 6.86s
hi @shaliniv112
welcome to our forums! This seems like a dependency issue, you may want to try adding these npm flags:
9:37:27 AM: npm ERR! this command with --force, or --legacy-peer-deps
by adding the NPM_FLAGS
environment variable:
Hope this helps!