Build with error. Build script returned non-zero exit code: 2

GitHub - daryapatsko/NewsApp this my project. Netlify did’t see my last commit and i always get the error. who can help me?

@daryapatsko Your build is throwing a warning from eslint.

By default warnings are treated as errors, and errors cause your build to fail.

You can adjust this behaviour by setting CI to false.

The easiest way to do this is to change your Build command

From
npm run build

To
CI= npm run build

1 Like

thank you very much!

Glad you found your solution and your build is working! Thanks for writing in.