Deploy from Github Debug about a "Gatsby build" hold up from forestry cms

@sukhigrewal,

the problem is in here somewhere:

2:40:49 PM: $ gatsby build
2:40:49 PM: bash: gatsby: command not found
2:40:49 PM: ​
2:40:49 PM: ┌─────────────────────────────┐
2:40:49 PM: │   "build.command" failed    │
2:40:49 PM: └─────────────────────────────┘
2:40:49 PM: ​
2:40:49 PM:   Error message
2:40:49 PM:   Command failed with exit code 127: gatsby build
2:40:49 PM: ​
2:40:49 PM:   Error location
2:40:49 PM:   In Build command from Netlify app:
2:40:49 PM:   gatsby build
2:40:49 PM: ​
2:40:49 PM:   Resolved config
2:40:49 PM:   build:
2:40:49 PM:     command: gatsby build
2:40:49 PM:     commandOrigin: ui
2:40:49 PM:     publish: /opt/build/repo/public

I am going to guess that there is no command called “gatsby” in your package.json.

If you post it, we can double check.

The build command you enter in the Netlify UI needs to match what is defined in your package.json needs to match the requirements of your project.

This Support Guide contains a ton of useful debugging tips as well :slight_smile:

1 Like