@Richard934 - we always recommend using the search to see if there are other people who already had this problem! in this case there are a bunch of questions:
Hi I’m new to jekyll deployment with Netlify. Everything works well on my localhost but won’t build on deployment.
“failed during stage ‘building site’: Build script returned non-zero exit code: 127”
My github repo is
Also in the deploy settings i have:
Build command: jekyll build
Publish directory: _site/
The following is the deployment log:
3:52:34 PM: Build ready to start
3:52:37 PM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f…
Apologies for the lengthy message, but this is my deploy log - Has anyone else run into this error? Preventing me from deploying site, and not sure how to fix!
11:46:21 PM: Started saving emacs cask dependencies
11:46:21 PM: Finished saving emacs cask dependencies
11:46:21 PM: Started saving maven dependencies
11:46:21 PM: Finished saving maven dependencies
11:46:21 PM: Started saving boot dependencies
11:46:21 PM: Finished saving boot dependencies
11:46:21 PM: Started saving go dependenc…
It seems the build is failing when I try to deploy my site to netlify, judging from the logs it could be my parcel.js setup. The error in the logs are:
12:19:29 AM: Error running command: Build script returned non-zero exit code: 127
12:19:29 AM: Failing build: Failed to build site
12:19:29 AM: failed during stage 'building site': Build script returned non-zero exit code: 127
12:19:29 AM: Finished processing build request in 21.32707912s
My deploy setting on Netlify are:
Base directory: Not s…
I’ve tried deploying my Gatsby site from Netlify many times with the same error code 127 coming back. The site builds locally, and I get my site running locally with gatsby serve. The error states that the deploy failed during stage ‘building site’.
I have tried nuking and re-installing my node modules as well as clearing cache. I thought it may have something to do with my gatsby-config file, but everything looks okay there.
I’ve built and deployed this site many times before through Netlify,…
go ahead and work through these posts, and if the error persists, please provide some more information about your site, including your netlify name, what you have tried to fix the issue and we can take a closer look