Deploy failed, does not specify where/why

My site says "deploy failed… **We couldn’t deploy your site. Check out our [Build docs] for tips on troubleshooting your build, or [ask us for debugging advice]. However, it says it updated from Github a couple minutes ago. How do I check where the deployment is going wrong?
Netlify: https://silly-axolotl-04abeb.netlify.app](https://silly-axolotl-04abeb.netlify.app/

Hey @nuyeno

You need to look in the deploy logs, which found in the Netlify UI under Sites > {your site name} > Deploys (or for your site via https://app.netlify.com/sites/silly-axolotl-04abeb/deploys) where you’ll see a list similar to this

If you cannot decipher the error, post the link to the log here along with the link to the repository you are deploying, and the build settings you are using.

It says:
“Failed during stage ‘building site’: Build script returned non-zero exit code: 1”
“Failed during stage ‘building site’: Build script returned non-zero exit code: 2”

I saw another thread about this, suggesting to change the CI variable to ‘false’, but I already did that when my site wasn’t deploying before.

Without seeing the full deploy log @nuyeno it is impossible to offer any specific guidance.

(post deleted by author)

3:46:55 PM: Build ready to start

3:46:57 PM: build-image version: d2c6dbeac570350a387d832f64bc980dc964ad65 (focal)

3:46:57 PM: build-image tag: v4.8.0

3:46:57 PM: buildbot version: d7330f24833f29d0263d28116347ab83094a2561

3:46:57 PM: Fetching cached dependencies

3:46:59 PM: Finished downloading cache in 1.501727328s

3:46:59 PM: Starting to extract cache

3:47:03 PM: Finished extracting cache in 4.132663161s

3:47:03 PM: Finished fetching cache in 5.650241769s

3:47:03 PM: Starting to prepare the repo for build

3:47:03 PM: Preparing Git Reference refs/heads/master

3:47:03 PM: Parsing package.json dependencies

3:47:04 PM: Starting build script

3:47:04 PM: Installing dependencies

3:47:04 PM: Python version set to 2.7

3:47:05 PM: Started restoring cached node version

3:47:06 PM: Finished restoring cached node version

3:47:06 PM: v16.15.0 is already installed.

3:47:07 PM: Now using node v16.15.0 (npm v8.5.5)

3:47:07 PM: Started restoring cached build plugins

3:47:07 PM: Finished restoring cached build plugins

3:47:07 PM: Attempting ruby version 2.7.2, read from environment

3:47:08 PM: Using ruby version 2.7.2

3:47:08 PM: Using PHP version 8.0

3:47:09 PM: No npm workspaces detected

3:47:09 PM: Started restoring cached node modules

3:47:09 PM: Finished restoring cached node modules

3:47:09 PM: Installing NPM modules using NPM version 8.5.5

3:47:15 PM: npm ERR! code ERR_INVALID_ARG_TYPE

3:47:15 PM: npm ERR! The “from” argument must be of type string. Received undefined

3:47:15 PM: npm ERR! A complete log of this run can be found in:

3:47:15 PM: npm ERR! /opt/buildhome/.npm/_logs/2022-06-13T01_47_10_062Z-debug-0.log

3:47:15 PM: Creating deploy upload records

3:47:15 PM: Error during NPM install

3:47:15 PM: Build was terminated: Build script returned non-zero exit code: 1

3:47:15 PM: Failing build: Failed to build site

3:47:15 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)

3:47:16 PM: Finished processing build request in 18.672517524s

disregard. I used suggestions to change components in my package.json to successfully deploy.

1 Like

Glad you had a successful deploy! Happy building! Let us know if any further questions come up :slight_smile: