hey there Netlify Forum,
running into this build error when deploying my project:
Error message
9:48:53 AM: Command failed with exit code 134: npm run build (https://ntl.fyi/exit-code-134)
everything works locally when I run βnpm run buildβ
this is my Netlify.toml file:
[build]
publish = "dist"
command = "npm run build"
[functions]
directory = "functions"
[[headers]]
for = "/*"
[headers.values]
X-Robots-Tag = "index, follow"
not too sure exactly where to go from here, will paste the full error log here for reference
9:48:51 AM: 16:48:51 ββ /home/index.html[astro-imagetools] alt is not a valid BackgroundImage Config Option
9:48:51 AM: free(): invalid size
9:48:52 AM: Aborted (core dumped)
9:48:53 AM: β
9:48:53 AM: "build.command" failed
9:48:53 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
9:48:53 AM: β
9:48:53 AM: Error message
9:48:53 AM: Command failed with exit code 134: npm run build (https://ntl.fyi/exit-code-134)
9:48:53 AM: β
9:48:53 AM: Error location
9:48:53 AM: In build.command from netlify.toml:
9:48:53 AM: npm run build
9:48:53 AM: β
9:48:53 AM: Resolved config
9:48:53 AM: build:
9:48:53 AM: command: npm run build
9:48:53 AM: commandOrigin: config
9:48:53 AM: environment:
9:48:53 AM: - KY_API_KEY
9:48:53 AM: - MC_API_KEY
9:48:53 AM: - RC_SECRET_KEY
9:48:53 AM: - REVIEW_ID
9:48:53 AM: - SANITY_DATASET
9:48:53 AM: - SANITY_PROJECT_ID
9:48:53 AM: - SANITY_TOKEN
9:48:53 AM: publish: /opt/build/repo/dist
9:48:53 AM: publishOrigin: config
9:48:53 AM: functionsDirectory: /opt/build/repo/functions
9:48:53 AM: headers:
9:48:53 AM: - for: /*
values:
X-Robots-Tag: index, follow
headersOrigin: config
plugins:
- inputs: {}
origin: ui
package: '@netlify/plugin-lighthouse'
9:48:53 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
9:48:54 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
9:48:54 AM: Failing build: Failed to build site
9:48:54 AM: Finished processing build request in 1m6.897s
thanks for the help in advance!