Hi all,
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: GitHub - ShuibCodes/Portfolio
5:35:10 PM: Build ready to start
5:35:11 PM: build-image version: 53b83b6bede2920f236b25b6f5a95334320dc849
5:35:11 PM: build-image tag: v3.6.0
5:35:11 PM: buildbot version: 8ae026ef4905d9174e416775c6b64aa19950569b
5:35:11 PM: Building without cache
5:35:11 PM: Starting to prepare the repo for build
5:35:12 PM: No cached dependencies found. Cloning fresh repo
5:35:12 PM: git clone GitHub - ShuibCodes/Portfolio
5:35:13 PM: Preparing Git Reference refs/heads/main
5:35:14 PM: Starting build script
5:35:14 PM: Installing dependencies
5:35:14 PM: Python version set to 2.7
5:35:16 PM: v12.18.0 is already installed.
5:35:16 PM: Now using node v12.18.0 (npm v6.14.4)
5:35:16 PM: Started restoring cached build plugins
5:35:17 PM: Finished restoring cached build plugins
5:35:17 PM: Attempting ruby version 2.7.1, read from environment
5:35:18 PM: Using ruby version 2.7.1
5:35:18 PM: Using PHP version 5.6
5:35:18 PM: Started restoring cached go cache
5:35:18 PM: Finished restoring cached go cache
5:35:18 PM: go version go1.14.4 linux/amd64
5:35:18 PM: go version go1.14.4 linux/amd64
5:35:18 PM: Installing missing commands
5:35:18 PM: Verify run directory
5:35:20 PM:
5:35:20 PM: ────────────────────────────────────────────────────────────────
5:35:20 PM: Netlify Build
5:35:20 PM: ────────────────────────────────────────────────────────────────
5:35:20 PM:
5:35:20 PM: ❯ Version
5:35:20 PM: @netlify/build 8.0.0
5:35:20 PM:
5:35:20 PM: ❯ Flags
5:35:20 PM: deployId: 5ff2004e36fe1357bc1831cf
5:35:20 PM: mode: buildbot
5:35:20 PM:
5:35:20 PM: ❯ Current directory
5:35:20 PM: /opt/build/repo
5:35:20 PM:
5:35:20 PM: ❯ Config file
5:35:20 PM: No config file was defined: using default values.
5:35:20 PM:
5:35:20 PM: ❯ Context
5:35:20 PM: production
5:35:20 PM:
5:35:20 PM: ────────────────────────────────────────────────────────────────
5:35:20 PM: 1. Build command from Netlify app
5:35:20 PM: ────────────────────────────────────────────────────────────────
5:35:20 PM:
5:35:20 PM: $ gatsby build
5:35:20 PM: bash: gatsby: command not found
5:35:20 PM:
5:35:20 PM: ────────────────────────────────────────────────────────────────
5:35:20 PM: “build.command” failed
5:35:20 PM: ────────────────────────────────────────────────────────────────
5:35:20 PM:
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
5:35:20 PM: Caching artifacts
5:35:20 PM: Started saving build plugins
5:35:20 PM: Finished saving build plugins
5:35:20 PM: Started saving pip cache
5:35:21 PM: Finished saving pip cache
5:35:21 PM: Started saving emacs cask dependencies
5:35:21 PM: Finished saving emacs cask dependencies
5:35:21 PM: Started saving maven dependencies
5:35:21 PM: Finished saving maven dependencies
5:35:21 PM: Started saving boot dependencies
5:35:21 PM: Finished saving boot dependencies
5:35:21 PM: Started saving rust rustup cache
5:35:21 PM: Finished saving rust rustup cache
5:35:21 PM: Started saving rust cargo bin cache
5:35:21 PM: Finished saving rust cargo bin cache
5:35:21 PM: Started saving go dependencies
5:35:21 PM: Finished saving go dependencies
5:35:24 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
5:35:24 PM: Failing build: Failed to build site
5:35:24 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2
5:35:24 PM: Finished processing build request in 12.352818868s