# My svelte-kit app's build is failing with a non-zero exit code: 2

**URL:** <https://answers.netlify.com/t/my-svelte-kit-apps-build-is-failing-with-a-non-zero-exit-code-2/38105>\
**Category:** Support\
**Tags:** building\
**Created:** [May 22, 2021, 5:03pm UTC](https://answers.netlify.com/t/my-svelte-kit-apps-build-is-failing-with-a-non-zero-exit-code-2/38105 "2021-05-22T17:03:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rchrdnsh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/rchrdnsh/32/22992_2.png) [@rchrdnsh](https://answers.netlify.com/u/rchrdnsh)\
**Post date:** [May 22, 2021, 5:03pm UTC](https://answers.netlify.com/t/my-svelte-kit-apps-build-is-failing-with-a-non-zero-exit-code-2/38105/1 "2021-05-22T17:03:42Z")

</div>

Here is the log:

> **[Netlify App](https://app.netlify.com/sites/rykr-kit/deploys/60a9343404ae26000882d906)**
>
> Start building the best web experiences in record time

…and it seems to fail pretty quickly.

But my local build is working fine and if i drag and drop my local build into netlify as a new site then it works just fine as well…it’s just the netlify build process from git that is not working for me…

Please check the log and see if anything pops out to you, but long story short:

 ![Screen Shot 2021-05-22 at 10.02.46 AM](https://global.discourse-cdn.com/netlify/original/3X/5/c/5cc0643e0d16d0a4239ed5deb9f5e4f7c96daaa6.png)

…and at the bottom of the log:

 ![Screen Shot 2021-05-22 at 10.03.03 AM](https://global.discourse-cdn.com/netlify/original/3X/2/a/2ab96c0445f1b85e3e08129547f8b5c5bdfbc31e.png)

thank you for your help! XD

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [May 22, 2021, 5:37pm UTC](https://answers.netlify.com/t/my-svelte-kit-apps-build-is-failing-with-a-non-zero-exit-code-2/38105/2 "2021-05-22T17:37:41Z")

</div>

The deploy log is private. However, by looking at the image, it seems as if your deploy is getting ‘Killed’. The text before that says transforming. I’m assuming it might be related to image transformation or something?

Generally speaking, the Killed message might mean that the deploy bot got killed because of amount of RAM available. Maybe it’s using more than allocated resources?

It’s just a guess and the actual error might be something different altogether.

---

<div class="post-metadata">

**Author:** ![rchrdnsh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/rchrdnsh/32/22992_2.png) [@rchrdnsh](https://answers.netlify.com/u/rchrdnsh)\
**Post date:** [May 22, 2021, 6:51pm UTC](https://answers.netlify.com/t/my-svelte-kit-apps-build-is-failing-with-a-non-zero-exit-code-2/38105/3 "2021-05-22T18:51:00Z")

</div>

yeah, I am starting to try to add image processing…that’s probably it then…not sure how to get around this issue, however…any suggestions would be welcome…I’m trying to use vite-imagetools in a sveltekit app, which uses vite under the hood…

---

<div class="post-metadata">

**Author:** ![hillary](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hillary/32/21132_2.png) [@hillary](https://answers.netlify.com/u/hillary)\
**Post date:** [May 27, 2021, 7:31pm UTC](https://answers.netlify.com/t/my-svelte-kit-apps-build-is-failing-with-a-non-zero-exit-code-2/38105/4 "2021-05-27T19:31:05Z")

</div>

Hey there, @rchrdnsh 👋

It looks like this thread has been quiet for the past few days. Are you still experiencing this issue? If so, let us know! If not, please share what steps you took to solve it.

Thanks!
