# Build script Build script returned non-zero exit code: 3

**URL:** <https://answers.netlify.com/t/build-script-build-script-returned-non-zero-exit-code-3/6041>\
**Category:** Support\
**Tags:** building\
**Created:** [December 9, 2019, 10:41pm UTC](https://answers.netlify.com/t/build-script-build-script-returned-non-zero-exit-code-3/6041 "2019-12-09T22:41:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yonatan](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/yonatan/32/1853_2.png) [@yonatan](https://answers.netlify.com/u/yonatan)\
**Post date:** [December 9, 2019, 10:41pm UTC](https://answers.netlify.com/t/build-script-build-script-returned-non-zero-exit-code-3/6041/1 "2019-12-09T22:41:35Z")

</div>

Hello,

I am having trouble deploying one of my sites and I cannot understand what is wrong from the logs.  
All I see is this hint: “Build script returned non-zero exit code: 3”

Anyone knows how to debug this issue?

---

<div class="post-metadata">

**Author:** ![laura](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/laura/32/6274_2.png) [@laura](https://answers.netlify.com/u/laura)\
**Post date:** [December 11, 2019, 12:15am UTC](https://answers.netlify.com/t/build-script-build-script-returned-non-zero-exit-code-3/6041/2 "2019-12-11T00:15:43Z")

</div>

Hi @yonatan! Welcome to netlify community.

If you search the forum, you will find several posts dealing with this issue:

![](https://global.discourse-cdn.com/netlify/original/2X/4/468ddc62fdc8e75008f02d9a1cc5d2710e6e1e17.png) [Site deploy failed](https://answers.netlify.com/t/site-deploy-failed/3101) [Deploying and Building](https://answers.netlify.com/c/topics/deploying-building)

> i am trying to deploy my website and i am getting build failed error: 3:06:23 PM: Error running command: Build script returned non-zero exit code: 1 3:06:23 PM: Failing build: Failed to build site 3:06:23 PM: failed during stage ‘building site’: Build script returned non-zero exit code: 1 { “name”: “adevonx”, “version”: “1.0.0”, “description”: "Application Development Operation ", “main”: “server.js”, “scripts”: { “start”: "./node\_modules/.bin/netlify-lambda serve ", “build”: “./node…

![](https://global.discourse-cdn.com/netlify/original/2X/1/1bd6b6b31c6e0fbf89a490d83898ac0c6e28fc7e.jpeg) [Error running command: Build script returned non-zero exit code: 1](https://answers.netlify.com/t/error-running-command-build-script-returned-non-zero-exit-code-1/1780) [Deploying and Building](https://answers.netlify.com/c/topics/deploying-building)

> Briefly summarize the issues you have been experiencing. When trying to deploy my site for the first time, I’m receiving the error “Error running command: Build script returned non-zero exit code: 1” Please provide a link to your live site hosted on Netlify Site is not live for this reason, but here is a link to my latest build attempt: [https://app.netlify.com/sites/latise/deploys/5d1a479ed3745c2a940f3e0b](https://app.netlify.com/sites/latise/deploys/5d1a479ed3745c2a940f3e0b) & here is a link to my project on github: [https://github.com/brianalauren/latise](https://github.com/brianalauren/latise) What…

![](https://global.discourse-cdn.com/netlify/original/2X/6/62732868f8a23a900ea3b08264478ad366cb7466.jpeg) [Build failing with non-zero exit code 1](https://answers.netlify.com/t/build-failing-with-non-zero-exit-code-1/1986) [Deploying and Building](https://answers.netlify.com/c/topics/deploying-building)

> Briefly summarize the issues you have been experiencing. Hey all wave, while building, I get non-zero exit code 1 while webpack is processing some lodash modules from node\_modules. Weird because I have a project using an identical webpack/babel config that builds without issues on Netlify. [Netlify App](https://app.netlify.com/sites/typvp/deploys/5d262a830a052f0008008ff8) Please provide a link to your live site hosted on Netlify [https://typvp.netlify.com](https://typvp.netlify.com/) What have you tried as far as troubleshooting goe…

And there is also this general debugging guide as well:

![](https://global.discourse-cdn.com/netlify/original/2X/9/9b21a4e3076aa5c5dddf19159337f7752525fcbd.jpeg) [[Common Issue] Debugging site builds](https://answers.netlify.com/t/common-issue-debugging-site-builds/142) [Deploying and Building](https://answers.netlify.com/c/topics/deploying-building)

> Note: This article is only about builds within Netlify’s Continuous Integration (CI) environment, as [triggered from git commits](https://www.netlify.com/docs/continuous-deployment) or from [incoming build webhooks](https://www.netlify.com/docs/webhooks/#incoming-webhooks). You can learn more in depth about how Netlify builds your site in this [article about how our build bots build sites](https://www.netlify.com/blog/2016/10/18/how-our-build-bots-build-sites/). Some background There are a fair number of reasons that a build could fail in Netlify’s CI environment, even if building works locally. Testing locally is always the place to start, and the thing we will recommend to you …

Go ahead and work through those, and let us know if the error persists - we’ll be happy to help if you tell us what you tried 👍

---

<div class="post-metadata">

**Author:** ![yonatan](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/yonatan/32/1853_2.png) [@yonatan](https://answers.netlify.com/u/yonatan)\
**Post date:** [December 11, 2019, 8:12am UTC](https://answers.netlify.com/t/build-script-build-script-returned-non-zero-exit-code-3/6041/3 "2019-12-11T08:12:46Z")

</div>

Hi,  
I saw these posts but none of them were refering to exit code 3.

I ended up deleting the site and setting it up again from scratch and the problem went away.

Cheers,

Yonatan
