Ailed during stage ‘Install dependencies’: dependency_installation script returned non-zero exit code: 1

Hello guys!

How can I solve this problem in deploy? I looked at some posts on the forum… but I’m still having problems!

LOG BELLOW:

4:21:45 PM: Failed during stage ‘Install dependencies’: dependency_installation script returned non-zero exit code: 1

4:21:26 PM: build-image version: 8205490ca60064f5c9949f585e9e35b434be95b8 (focal)

4:21:26 PM: buildbot version: eb0b3c03ee1b40888f6883e255e3a141a5a683be

4:21:26 PM: Fetching cached dependencies

4:21:26 PM: Failed to fetch cache, continuing with build

4:21:26 PM: Starting to prepare the repo for build

4:21:27 PM: No cached dependencies found. Cloning fresh repo

4:21:27 PM: git clone --filter=blob:none GitHub - LimaBruno/personal-blog: My personal blog in construction

4:21:27 PM: Preparing Git Reference refs/heads/master

4:21:28 PM: Starting to install dependencies

4:21:28 PM: Python version set to 3.8

4:21:29 PM: Attempting Ruby version 2.7.1, read from environment

4:21:29 PM: Required ruby-2.7.1 is not installed - installing.

4:21:29 PM: Searching for binary rubies, this might take some time.

4:21:29 PM: Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/20.04/x86_64/ruby-2.7.1.tar.bz2

4:21:29 PM: Checking requirements for ubuntu.

4:21:30 PM: Requirements installation successful.

4:21:30 PM: ruby-2.7.1 - #configure

4:21:30 PM: ruby-2.7.1 - #download

4:21:30 PM: ruby-2.7.1 - #validate archive

4:21:33 PM: ruby-2.7.1 - #extract

4:21:35 PM: ruby-2.7.1 - #validate binary

4:21:35 PM: ruby-2.7.1 - #setup

4:21:36 PM: ruby-2.7.1 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.7.1@global

4:21:36 PM: ruby-2.7.1 - #importing gemset /opt/buildhome/.rvm/gemsets/global.gems…

4:21:36 PM: ruby-2.7.1 - #generating global wrappers…

4:21:36 PM: ruby-2.7.1 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.7.1

4:21:36 PM: ruby-2.7.1 - #importing gemsetfile /opt/buildhome/.rvm/gemsets/default.gems evaluated to empty gem list

4:21:36 PM: ruby-2.7.1 - #generating default wrappers…

4:21:37 PM: Using /opt/buildhome/.rvm/gems/ruby-2.7.1

4:21:37 PM: Using Ruby version 2.7.1

4:21:37 PM: Started restoring cached go cache

4:21:37 PM: Finished restoring cached go cache

4:21:37 PM: Installing Go version 1.14.4 (requested 1.14.4)

4:21:41 PM: go version go1.14.4 linux/amd64

4:21:42 PM: Using PHP version 8.0

4:21:43 PM: Downloading and installing node v12.18.0…

4:21:43 PM: Downloading https://nodejs.org/dist/v12.18.0/node-v12.18.0-linux-x64.tar.xz

4:21:43 PM: Computing checksum with sha256sum

4:21:43 PM: Checksums matched!

4:21:44 PM: Now using node v12.18.0 (npm v6.14.4)

4:21:45 PM: Started restoring cached build plugins

4:21:45 PM: Finished restoring cached build plugins

4:21:45 PM: Started restoring cached corepack dependencies

4:21:45 PM: Finished restoring cached corepack dependencies

4:21:45 PM: No npm workspaces detected

4:21:45 PM: Started restoring cached node modules

4:21:45 PM: Finished restoring cached node modules

4:21:45 PM: Installing npm packages using npm version 6.14.4

4:21:45 PM: npm ERR! code EUNSUPPORTEDPROTOCOL

4:21:45 PM: npm ERR! Unsupported URL Type value:: value:–legacy-peer-deps

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

4:21:45 PM: npm ERR! /opt/buildhome/.npm/_logs/2023-08-31T19_21_45_523Z-debug.log

4:21:45 PM: Error during npm install

4:21:45 PM: Build was terminated: dependency_installation script returned non-zero exit code: 1

4:21:45 PM: Failing build: Failed to install dependencies

Either your package.json or one of your dependencies has something wrong in them. This is a code issue and not something we can help you debug.

Hey!

resolved some dependency issues. In my development environment (localhost) the build is running (npm 9.8.1 and node 18.17.1). On netlify is 9.6.1). already changed react version for (react@16.8.4) but the problem continue. Please, can you help me? This problem is my code?

Localhost it’`s OK! (Gatsby Deploy and Build)

Duplicate of: Building Falied - Support - Netlify Support Forums