# How to fix code 127 when uploading site to netlify

**URL:** <https://talk.jekyllrb.com/t/how-to-fix-code-127-when-uploading-site-to-netlify/10264>\
**Category:** Uncategorized\
**Created:** [January 31, 2026, 1:11pm UTC](https://talk.jekyllrb.com/t/how-to-fix-code-127-when-uploading-site-to-netlify/10264 "2026-01-31T13:11:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgr8abr](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/dgr8abr/32/6045_2.png) [@dgr8abr](https://talk.jekyllrb.com/u/dgr8abr)\
**Post date:** [January 31, 2026, 1:11pm UTC](https://talk.jekyllrb.com/t/how-to-fix-code-127-when-uploading-site-to-netlify/10264/1 "2026-01-31T13:11:51Z")

</div>

I’m not a good debugger, that’s why I need your help, folks.

Has anyone of you here encountered issues like this when deploying your site via drag and drop feature in netlify?

```auto
8:18:54 PM: ​

8:18:54 PM: $ cecil build

8:18:54 PM: bash: line 1: cecil: command not found

8:18:54 PM: ​

8:18:54 PM: "build.command" failed                                        

8:18:54 PM: ────────────────────────────────────────────────────────────────

8:18:54 PM: ​

8:18:54 PM: Error message

8:18:54 PM: Command failed with exit code 127: cecil build (https://ntl.fyi/exit-code-127)

8:18:54 PM: ​

8:18:54 PM: Error location

8:18:54 PM: In build.command from netlify.toml:

8:18:54 PM: cecil build

8:18:54 PM: ​

8:18:54 PM: Resolved config

8:18:54 PM: build:

8:18:54 PM: command: cecil build

8:18:54 PM: commandOrigin: config

8:18:54 PM: publish: /opt/build/repo/_site

8:18:54 PM: publishOrigin: config

8:18:55 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)

8:18:55 PM: Build failed due to a user error: Build script returned non-zero exit code: 2

```

this is what I’ve done so far to remedy this (based on the Deploy Log )

I did this part here, because i don’t have `node_modules`

**B — If cecil is a Ruby gem:**

- Add it to your Gemfile and commit, or ensure you install it during the build. Example Gemfile entry:

```auto
gem "cecil"

```

- Update Netlify build command to install and run via bundler

```auto
bundle install && bundle exec cecil build

```

**───────────────────────────────────────────────────────────────**  
I get this error : `bundler: command not found: cecil` in my terminal

can this be the right article to fix this kind of error??\*\* [Bundler Command Not Found: How to Fix This Error](https://hatchjs.com/bundler-command-not-found/)

I just need some of your clever ideas to fix this.

---

<div class="post-metadata">

**Author:** ![george-gca](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/george-gca/32/5301_2.png) [@george-gca](https://talk.jekyllrb.com/u/george-gca)\
**Post date:** [February 2, 2026, 1:12am UTC](https://talk.jekyllrb.com/t/how-to-fix-code-127-when-uploading-site-to-netlify/10264/2 "2026-02-02T01:12:30Z")

</div>

What is Cecil? A ruby gem? A command?

---

<div class="post-metadata">

**Author:** ![dgr8abr](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/dgr8abr/32/6045_2.png) [@dgr8abr](https://talk.jekyllrb.com/u/dgr8abr)\
**Post date:** [February 2, 2026, 2:48am UTC](https://talk.jekyllrb.com/t/how-to-fix-code-127-when-uploading-site-to-netlify/10264/3 "2026-02-02T02:48:58Z")

</div>

it’s a netlify issue man, it was their default build command in I had to change it in their Web UI because it’s defaulted to cecil build.
