Failed during stage 'Install dependencies': dependency_installation script returned non-zero exit code: 1

strong text
1:07:45 PM: Failed during stage ‘Install dependencies’: dependency_installation script returned non-zero exit code: 1

1:07:21 PM: build-image version: 20e1f1f500e4cbad9ea8a99bd40807bef3093551 (focal)

1:07:21 PM: buildbot version: 40cf44665c1965f7faca3012064c7afed34d680c

1:07:21 PM: Fetching cached dependencies

1:07:21 PM: Starting to download cache of 181.0MB

1:07:23 PM: Finished downloading cache in 1.735s

1:07:23 PM: Starting to extract cache

1:07:25 PM: Finished extracting cache in 1.723s

1:07:25 PM: Finished fetching cache in 3.572s

1:07:25 PM: Starting to prepare the repo for build

1:07:25 PM: Preparing Git Reference refs/heads/main

1:07:27 PM: Starting to install dependencies

1:07:27 PM: Python version set to 3.8

1:07:27 PM: Attempting Ruby version 2.7.2, read from environment

1:07:27 PM: Using Ruby version 2.7.2

1:07:28 PM: Started restoring cached go cache

1:07:28 PM: Finished restoring cached go cache

1:07:29 PM: Installing Go version 1.19.12 (requested 1.19.x)

1:07:34 PM: go version go1.19.12 linux/amd64

1:07:34 PM: Using PHP version 8.0

1:07:35 PM: Started restoring cached Node.js version

1:07:36 PM: Finished restoring cached Node.js version

1:07:37 PM: v18.17.1 is already installed.

1:07:37 PM: Now using node v18.17.1 (npm v9.6.7)

1:07:37 PM: Enabling Node.js Corepack

1:07:37 PM: Started restoring cached build plugins

1:07:37 PM: Finished restoring cached build plugins

1:07:37 PM: Started restoring cached corepack dependencies

1:07:37 PM: Finished restoring cached corepack dependencies

1:07:37 PM: No npm workspaces detected

1:07:37 PM: Started restoring cached node modules

1:07:37 PM: Finished restoring cached node modules

1:07:37 PM: Installing npm packages using npm version 9.6.7

1:07:38 PM: npm WARN old lockfile

1:07:38 PM: npm WARN old lockfile The package-lock.json file was created with an old version of npm,

1:07:38 PM: npm WARN old lockfile so supplemental metadata must be fetched from the registry.

1:07:38 PM: npm WARN old lockfile

1:07:38 PM: npm WARN old lockfile This is a one-time fix-up, please be patient…

1:07:38 PM: npm WARN old lockfile

1:07:45 PM: npm ERR! code E401

1:07:45 PM: npm ERR! Unable to authenticate, your authentication token seems to be invalid.

1:07:45 PM: npm ERR! To correct this please trying logging in again with:

1:07:45 PM: npm ERR! npm login

1:07:45 PM: npm ERR! A complete log of this run can be found in: /opt/buildhome/.npm/_logs/2023-08-15T11_07_37_808Z-debug-0.log

1:07:45 PM: Error during npm install

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

1:07:45 PM: Failing build: Failed to install dependencies

how to solve this 'i have

environment
CI false
npm srun build

Hiya, sorry you are having trouble with your build.

This Support Guide contains a ton of useful debugging tips that can likely help you solve your problem :slight_smile: Additionally, this Support Guide houses all of our resources for debugging build and deploy issues.

We also recommend trying to search the forums with the build error you encountered - it’s likely your question was already asked by someone else!

If you are still having problems, please provide as much information as you can on what you have already tried, what your build settings are, your package.json, etc. Thanks!