# Build error during deployment

**URL:** <https://answers.netlify.com/t/build-error-during-deployment/93721>\
**Category:** Support\
**Tags:** building, deployment\
**Created:** [June 4, 2023, 10:55am UTC](https://answers.netlify.com/t/build-error-during-deployment/93721 "2023-06-04T10:55:38Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![nathanmartin](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/nathanmartin/32/30845_2.png) [@nathanmartin](https://answers.netlify.com/u/nathanmartin)\
**Post date:** [June 4, 2023, 1:20pm UTC](https://answers.netlify.com/t/build-error-during-deployment/93721/4 "2023-06-04T13:20:35Z")

</div>

> [@CharlesXstorm](#):
>
> but it seems Netlify’s build sees warnings as errors and it fails immediately.

That is the case by default, but these lines in your log:

```auto
12:35:25 PM: build.command from netlify.toml                               
12:35:25 PM: ────────────────────────────────────────────────────────────────
12:35:25 PM: ​
12:35:25 PM: $ CI= npm run build

```

Indicates that your `netlify.toml` **build command** is `CI= npm run build`, which disables that behavior.

It’s setting the `CI` value to `false`

See:

> [@New CI=true build configuration, "Treating warnings as errors because process.env.CI = true"](https://answers.netlify.com/t/new-ci-true-build-configuration-treating-warnings-as-errors-because-process-env-ci-true/14434):
>
> Beginning on June 15, 2020 Netlify will start a gradual rollout of adding the environment variable CI to build environments, with the value of true . This environment variable, short for Continuous Integration, is commonly set in various CI environments like Travis CI and Github Actions, among many others. The ecosystem has largely agreed to use this environment setting to detect when a build is executing in a CI environment, as opposed to a local development environment. This setting allows…

---

_[View the full topic](https://answers.netlify.com/t/build-error-during-deployment/93721)._
