How to fix code 127 when uploading site to netlify

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?

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:
gem "cecil"
  • Update Netlify build command to install and run via bundler

    but when I run this command below:

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

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

What is Cecil? A ruby gem? A command?

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.