Shuib Abdillahi
Shuib Abdillahi

Reputation: 119

Netlify cannot find build command

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

Upvotes: 1

Views: 153

Answers (1)

Ferran Buireu
Ferran Buireu

Reputation: 29315

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.

Upvotes: 1

Related Questions