Hello , I’m facing this issue Build failed due to a user error: Build script returned non-zero exit code: 2.
I’m using my open-source turbo repo
here’s the link of my repo: GitHub - ui-layouts/uilayouts: 🔥50+ Free beautifull interactive react/nextjs component based on tailwindcss, framer-motion, gsap etc
and try to deploy my two project from this rep and one of my project which in
apps/animation
deploy successfully but when i try to deploy another one from
apps/ui-layout
it’s giving me all this error:
10:18:36 AM: ui-layout-starter-kit:build: }
10:18:36 AM: ui-layout-starter-kit:build: component {
10:18:36 AM: ui-layout-starter-kit:build: componentName: 'horizontalscroll',
10:18:36 AM: ui-layout-starter-kit:build: iframelink: 'horizontal-scrolling-section',
10:18:36 AM: ui-layout-starter-kit:build: parentlink: 'horizontal-scroll',
10:18:36 AM: ui-layout-starter-kit:build: parentName: 'Horizontal Scroll'
10:18:36 AM: ui-layout-starter-kit:build: }
10:18:37 AM: ui-layout-starter-kit:build: component {
10:18:37 AM: ui-layout-starter-kit:build: componentName: 'card-globe',
10:18:37 AM: ui-layout-starter-kit:build: iframelink: 'card-globe',
10:18:37 AM: ui-layout-starter-kit:build: parentlink: 'globe',
10:18:37 AM: ui-layout-starter-kit:build: parentName: 'Globe'
10:18:37 AM: ui-layout-starter-kit:build: }
10:18:37 AM: ui-layout-starter-kit:build: component {
10:18:37 AM: ui-layout-starter-kit:build: componentName: 'card-globe2',
10:18:37 AM: ui-layout-starter-kit:build: iframelink: 'card-globe2',
10:18:37 AM: ui-layout-starter-kit:build: parentlink: 'globe',
10:18:37 AM: ui-layout-starter-kit:build: parentName: 'Globe'
10:18:37 AM: ui-layout-starter-kit:build: }
10:18:37 AM: ui-layout-starter-kit:build: component {
10:18:37 AM: ui-layout-starter-kit:build: componentName: 'sparkles-globe',
10:18:37 AM: ui-layout-starter-kit:build: iframelink: 'sparkles-globe',
10:18:37 AM: ui-layout-starter-kit:build: parentlink: 'sparkles',
10:18:37 AM: ui-layout-starter-kit:build: parentName: 'Sparkles'
10:18:37 AM: ui-layout-starter-kit:build: }
10:18:37 AM: ui-layout-starter-kit:build: component {
10:18:37 AM: ui-layout-starter-kit:build: componentName: 'card-globe',
10:18:37 AM: ui-layout-starter-kit:build: iframelink: 'card-globe',
10:18:37 AM: ui-layout-starter-kit:build: parentlink: 'globe',
10:18:37 AM: ui-layout-starter-kit:build: parentName: 'Globe'
10:18:37 AM: ui-layout-starter-kit:build: }
10:18:37 AM: ui-layout-starter-kit:build: component {
10:18:37 AM: ui-layout-starter-kit:build: componentName: 'card-globe2',
10:18:37 AM: ui-layout-starter-kit:build: iframelink: 'card-globe2',
10:18:37 AM: ui-layout-starter-kit:build: parentlink: 'globe',
10:18:37 AM: ui-layout-starter-kit:build: parentName: 'Globe'
10:18:37 AM: ui-layout-starter-kit:build: }
10:18:37 AM: ui-layout-starter-kit:build: component {
10:18:37 AM: ui-layout-starter-kit:build: componentName: 'sparkles-globe',
10:18:37 AM: ui-layout-starter-kit:build: iframelink: 'sparkles-globe',
10:18:37 AM: ui-layout-starter-kit:build: parentlink: 'sparkles',
10:18:37 AM: ui-layout-starter-kit:build: parentName: 'Sparkles'
10:18:37 AM: ui-layout-starter-kit:build: }
10:18:38 AM: ui-layout-starter-kit:build: component {
10:18:38 AM: ui-layout-starter-kit:build: componentName: 'img-ripple-effect',
10:18:38 AM: ui-layout-starter-kit:build: iframelink: 'img-ripple-effect',
10:18:38 AM: ui-layout-starter-kit:build: parentlink: 'img-ripple-effect',
10:18:38 AM: ui-layout-starter-kit:build: parentName: 'Img Ripple Effect'
10:18:38 AM: ui-layout-starter-kit:build: }
10:18:38 AM: ui-layout-starter-kit:build: component {
10:18:38 AM: ui-layout-starter-kit:build: componentName: 'img-ripple-effect',
10:18:38 AM: ui-layout-starter-kit:build: iframelink: 'img-ripple-effect',
10:18:38 AM: ui-layout-starter-kit:build: parentlink: 'img-ripple-effect',
10:18:38 AM: ui-layout-starter-kit:build: parentName: 'Img Ripple Effect'
10:18:38 AM: ui-layout-starter-kit:build: }
10:18:52 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
10:18:47 AM: ui-layout-starter-kit:build: Killed
10:18:47 AM: ui-layout-starter-kit:build: ELIFECYCLE Command failed with exit code 137. (https://ntl.fyi/exit-code-137)
10:18:47 AM: ui-layout-starter-kit:build: ERROR: command finished with error: command (/opt/build/repo/apps/ui-layout) /opt/buildhome/.nvm/versions/node/v18.20.5/bin/pnpm run build exited (137)
10:18:47 AM: ui-layout-starter-kit#build: command (/opt/build/repo/apps/ui-layout) /opt/buildhome/.nvm/versions/node/v18.20.5/bin/pnpm run build exited (137)
10:18:48 AM: Tasks: 0 successful, 1 total
10:18:48 AM: Cached: 0 cached, 1 total
10:18:48 AM: Time: 1m18.666s
10:18:48 AM: Failed: ui-layout-starter-kit#build
10:18:48 AM: ERROR run failed: command exited (137)
10:18:49 AM:
10:18:49 AM: "build.command" failed
10:18:49 AM: ────────────────────────────────────────────────────────────────
10:18:49 AM:
10:18:49 AM: Error message
10:18:49 AM: Command failed with exit code 137: turbo run build --filter ui-layout-starter-kit (https://ntl.fyi/exit-code-137)
10:18:49 AM:
10:18:49 AM: Error location
10:18:49 AM: In Build command from Netlify app:
10:18:49 AM: turbo run build --filter ui-layout-starter-kit
10:18:49 AM:
10:18:49 AM: Resolved config
10:18:49 AM: build:
10:18:49 AM: command: turbo run build --filter ui-layout-starter-kit
10:18:49 AM: commandOrigin: ui
10:18:49 AM: publish: /opt/build/repo/apps/ui-layout/.next
10:18:49 AM: publishOrigin: ui
10:18:49 AM: plugins:
10:18:49 AM: - inputs: {}
10:18:49 AM: origin: config
10:18:49 AM: package: '@netlify/plugin-nextjs'
10:18:51 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
10:18:52 AM: Failing build: Failed to build site
10:18:52 AM: Finished processing build request in 1m59.153s