Build was terminated: Build script returned non-zero exit code: 1 - Jan 2023

Site name: xr-h.netlify.app

Deploy log

I am having build problems, deploy log:

11:47:24 AM: build-image version: a2d22d22e4555d1ef0a972ed14a0a4b366ad20c4 (focal)

11:47:24 AM: build-image tag: v4.16.3

11:47:24 AM: buildbot version: 4033cea21a3d9a6b51a0c8660e8b7502a7f7abfe

11:47:24 AM: Fetching cached dependencies

11:47:24 AM: Failed to fetch cache, continuing with build

11:47:24 AM: Starting to prepare the repo for build

11:47:24 AM: No cached dependencies found. Cloning fresh repo

11:47:24 AM: git clone --filter=blob:none https://github.com/LovesPictures/Xr-H

11:47:25 AM: Preparing Git Reference refs/heads/main

11:47:25 AM: Parsing package.json dependencies

11:47:27 AM: Starting build script

11:47:27 AM: Installing dependencies

11:47:27 AM: Python version set to 2.7

11:47:27 AM: v16.19.0 is already installed.

11:47:27 AM: Now using node v16.19.0 (npm v8.19.3)

11:47:28 AM: Enabling Node.js Corepack

11:47:28 AM: Started restoring cached build plugins

11:47:28 AM: Finished restoring cached build plugins

11:47:28 AM: Attempting Ruby version 2.7.2, read from environment

11:47:28 AM: Using Ruby version 2.7.2

11:47:28 AM: Using PHP version 8.0

11:47:28 AM: Started restoring cached corepack dependencies

11:47:28 AM: mv: cannot move ‘/opt/build/cache/.node/corepack’ to ‘/opt/buildhome/.node/corepack’: No such file or directory

11:47:28 AM: Finished restoring cached corepack dependencies

11:47:28 AM: No npm workspaces detected

11:47:28 AM: Started restoring cached node modules

11:47:28 AM: Finished restoring cached node modules

11:47:28 AM: Bypassing sha validation. Running pre & post install scripts

11:47:29 AM: Installing npm packages using npm version 8.19.3

11:47:30 AM: npm WARN old lockfile

11:47:30 AM: npm WARN old lockfile The package-lock.json file was created with an old version of npm,

11:47:30 AM: npm WARN old lockfile so supplemental metadata must be fetched from the registry.

11:47:30 AM: npm WARN old lockfile

11:47:30 AM: npm WARN old lockfile This is a one-time fix-up, please be patient…

11:47:30 AM: npm WARN old lockfile

11:47:38 AM: npm ERR! code ETARGET

11:47:38 AM: npm ERR! notarget No matching version found for react-leaflet@^1.9.3.

11:47:38 AM: npm ERR! notarget In most cases you or one of your dependencies are requesting

11:47:38 AM: npm ERR! notarget a package version that doesn’t exist.

11:47:38 AM: npm ERR! A complete log of this run can be found in:

11:47:38 AM: npm ERR! /opt/buildhome/.npm/_logs/2023-01-14T11_47_29_373Z-debug-0.log

11:47:38 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)

11:47:38 AM: Error during npm install

11:47:38 AM: Build was terminated: Build script returned non-zero exit code: 1

11:47:38 AM: Failing build: Failed to build site

11:47:38 AM: Finished processing build request in 14.407720355s

The version you’ve specified for that package is incorrect and doesn’t exist. Please check the version (or the package).

Thanks that solved one issue, now I have another

Hi, @Jude. To assist you, we need to see the error message in the log. Please share a link to the deploy or the deploy logs here.

Sorry, I am trying to find a way to post the script the system is not letting me, I many need to start a new question

Hi @Jude :wave:t6: you should be able to just post the link as a response. If not it’s fine if you create a new thread just please link to this one.