Hi team, I am getting following error for my site while building build.I’m running the same command on my local and I don’t encounter the same issue. My sites info and error logs are as following:
-
netlify site name:
plenty-network-temp-development
-
deploy link: Netlify App
-
Build logs(error):
3:29:38 PM: info - Generating static pages (3/12)
3:29:40 PM: Killed
3:29:40 PM:
3:29:40 PM: “build.command” failed
3:29:40 PM: ────────────────────────────────────────────────────────────────
3:29:40 PM:
3:29:40 PM: Error message
3:29:40 PM: Command failed with exit code 137: CI=false npm run build (Search results for '"non-zero exit code: 137"' - Netlify Support Forums)
3:29:40 PM:
3:29:40 PM: Error location
3:29:40 PM: In Build command from Netlify app:
3:29:40 PM: CI=false npm run build
3:29:40 PM:
3:29:40 PM: Resolved config
3:29:40 PM: build:
3:29:40 PM: command: CI=false npm run build
3:29:40 PM: commandOrigin: ui
3:29:40 PM: environment:
3:29:40 PM: - CI
3:29:40 PM: - NEXT_PUBLIC_RPC_MAINNET
3:29:40 PM: - NEXT_PUBLIC_RPC_TESTNET
3:29:40 PM: - NEXT_PUBLIC_TZKT_GHOSTNET
3:29:40 PM: - NEXT_PUBLIC_TZKT_MAINNET
3:29:40 PM: - NODE_OPTIONS
3:29:40 PM: - REVIEW_ID
3:29:40 PM: - NEXT_PRIVATE_TARGET
3:29:40 PM: publish: /opt/build/repo/.next
3:29:40 PM: publishOrigin: ui
3:29:40 PM: plugins:
3:29:40 PM: - inputs: {}
3:29:40 PM: origin: ui
3:29:40 PM: package: ‘@netlify/plugin-nextjs’
3:29:42 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2 (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)
3:29:42 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
3:29:42 PM: Failing build: Failed to build site
3:29:42 PM: Finished processing build request in 1m48.307s
My site is using nextjs.
Thank you.