1

I am trying to deploy my first gatsby site, with a blog but it keeps failing. Ive updated all my dependancies but now I cant figure out what exactly is the issue. I tried changing the build settinfs but not 100% if its correct.

github repo: https://github.com/ShuibCodes/Portfolio

5:35:20 PM:   Error message
5:35:20 PM:   Command failed with exit code 127: gatsby build
5:35:20 PM: ​
5:35:20 PM:   Error location
5:35:20 PM:   In Build command from Netlify app:
5:35:20 PM:   gatsby build
5:35:20 PM: ​
5:35:20 PM:   Resolved config
5:35:20 PM:   build:
5:35:20 PM:     command: gatsby build
5:35:20 PM:     commandOrigin: ui
5:35:20 PM:     publish: /opt/build/repo/Portfolio/Portfolio/gatsby-simplefolio/public
3
  • Please add some details. Does it build locally? Commented Jan 3, 2021 at 18:17
  • Hey, thank u for the quick reply. your right, the git files were in weird order so I created a new repo. A silly mistake really, thank u! Commented Jan 3, 2021 at 18:45
  • check with GitHub repo package.json file make it outer. Commented Jan 5, 2021 at 7:57

1 Answer 1

1

You have a weird Git project structure:

Portfolio/Portfolio/gatsby-simplefolio

gatsby-simplefolio should be at the first level of the repository.

Try cleaning up the structure and redo the process.

Netlify's trying to run a gatsby build command in a folder that doesn't have any configuration file because it's at the third level.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.