Trouble installing NPM packages

similar issues
4:30:27 PM: Installing NPM modules using NPM version 8.11.0

4:30:28 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special

4:30:28 PM: npm WARN config location in the cache, and they are managed by

4:30:28 PM: npm WARN config cacache.

4:30:28 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special

4:30:28 PM: npm WARN config location in the cache, and they are managed by

4:30:28 PM: npm WARN config cacache.

4:30:31 PM: npm ERR! code ERESOLVE

4:30:31 PM: npm ERR! ERESOLVE unable to resolve dependency tree

4:30:31 PM: npm ERR!

4:30:31 PM: npm ERR! While resolving: bts-coinmarketcap-blockchain@0.1.0

4:30:31 PM: Creating deploy upload records

4:30:31 PM: npm ERR! Found: react@17.0.2

4:30:31 PM: npm ERR! node_modules/react

4:30:31 PM: npm ERR! react@“17.0.2” from the root project

4:30:31 PM: npm ERR!

4:30:31 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)

4:30:31 PM: npm ERR! Could not resolve dependency:

4:30:31 PM: npm ERR! peer react@“18” from web3uikit@0.1.163

4:30:31 PM: npm ERR! node_modules/web3uikit

4:30:31 PM: npm ERR! web3uikit@“^0.1.123” from the root project

4:30:31 PM: npm ERR!

4:30:31 PM: npm ERR! Fix the upstream dependency conflict, or retry

4:30:31 PM: npm ERR! this command with --force, or --legacy-peer-deps

4:30:31 PM: npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

4:30:31 PM: npm ERR!

4:30:31 PM: npm ERR! See /opt/buildhome/.npm/eresolve-report.txt for a full report.

4:30:31 PM: npm ERR! A complete log of this run can be found in:

4:30:31 PM: npm ERR! /opt/buildhome/.npm/_logs/2022-06-30T20_30_28_485Z-debug-0.log

4:30:31 PM: Error during NPM install

4:30:31 PM: Build was terminated: Build script returned non-zero exit code: 1

4:30:31 PM: Failing build: Failed to build site

4:30:31 PM: Finished processing build request in 8.549660132s

Hiya @gavortex and sorry to hear about the trouble! Your problem is unrelated to the thread you posted in (which is about trouble with Ruby, not Node.js), so I moved it to its own thread here to help you.

Please start out in your debugging by following this guide on debugging site builds. It covers 90% of the problems folks have including many that have symptoms like yours: [Support Guide] Debugging Netlify site builds . If you go through those steps and they do not help, please follow the call to action at the bottom of the post and:

[…] tell us the information you gathered while debugging:

  • a link to your most recent deployment attempt in our UI (should start with Netlify App). This will only help the community debug in case your build logs are public, of course. Most public repositories are set with public build logs, and our Support team can by request make your own site’s build logs public even if it’s a private repository.
  • include the specific log line you think the error is in, from that latest deploy you tried to debug and have linked. Make sure you find the root cause error line:
    Build script exited with Error 1 is a SYMPTOM of some prior error from your build script :slight_smile:
  • give a short, succinct rundown on what you have tried so far and we’ll try to help.