I have been having this issue and i can't seem to find a working solution. please help resolve the issue.
10:46:56 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
10:46:54 AM: Netlify Build
10:46:54 AM: ────────────────────────────────────────────────────────────────
10:46:54 AM:
10:46:54 AM: ❯ Version
10:46:54 AM: @netlify/build 29.12.1
10:46:54 AM:
10:46:54 AM: ❯ Flags
10:46:54 AM: baseRelDir: true
10:46:54 AM: buildId: 649bf364617c61519231de5a
10:46:54 AM: deployId: 649bf364617c61519231de5c
10:46:54 AM: tracing:
10:46:54 AM: enabled: 'false'
10:46:54 AM: host: 10.65.14.1
10:46:54 AM: parentSpanId: ecf44dda7173c91b
10:46:54 AM: traceFlags: '01'
10:46:54 AM: traceId: 90756c7a156effc636e2dedf005b417a
10:46:54 AM:
10:46:54 AM: ❯ Current directory
10:46:54 AM: /opt/build/repo
10:46:54 AM:
10:46:54 AM: ❯ Config file
10:46:54 AM: No config file was defined: using default values.
10:46:54 AM:
10:46:54 AM: ❯ Context
10:46:54 AM: production
10:46:54 AM:
10:46:54 AM: Build command from Netlify app
10:46:54 AM: ────────────────────────────────────────────────────────────────
10:46:54 AM:
10:46:54 AM: $ Build command
10:46:54 AM: bash: Build: command not found
10:46:54 AM:
10:46:54 AM: build.command failed
10:46:54 AM: ────────────────────────────────────────────────────────────────
10:46:54 AM:
10:46:54 AM: Error message
10:46:54 AM: Command failed with exit code 127: Build command (https://ntl.fyi/exit-code-127)
10:46:54 AM:
10:46:54 AM: Error location
10:46:54 AM: In Build command from Netlify app:
10:46:54 AM: Build command
10:46:54 AM:
10:46:54 AM: Resolved config
10:46:54 AM: build:
10:46:54 AM: command: Build command
10:46:54 AM: commandOrigin: ui
10:46:54 AM: publish: /opt/build/repo/Publish directory
10:46:54 AM: publishOrigin: ui
10:46:56 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
10:46:56 AM: Failing build: Failed to build site
10:46:56 AM: Finished processing build request in 25.832s
Top comments (0)