Hello support forum
I’m facing a problem my deployment is failing at the building phase.
my target directory to publish is “forkify-parcel” which isn’t located in the subdirectory.
this is my referring repo: GitHub - KKoichi276052/javascripit-learning-log
If I remove my build command in deploy settings it results in completing deploy.
It’ll be lovely if you could help me. Thank you in advance
Error message I get
9:26:34 AM: Netlify Build
9:26:34 AM: ────────────────────────────────────────────────────────────────
9:26:34 AM:
9:26:34 AM: ❯ Version
9:26:34 AM: @netlify/build 29.39.0
9:26:34 AM:
9:26:34 AM: ❯ Flags
9:26:34 AM: baseRelDir: true
9:26:34 AM: buildId: 660f44f3fa5cb6184fe4d9e5
9:26:34 AM: deployId: 660f44f3fa5cb6184fe4d9e7
9:26:34 AM:
9:26:34 AM: ❯ Current directory
9:26:34 AM: /opt/build/repo/complete-javascript-course/forkify-parcel
9:26:34 AM:
9:26:34 AM: ❯ Config file
9:26:34 AM: No config file was defined: using default values.
9:26:34 AM:
9:26:34 AM: ❯ Context
9:26:34 AM: production
9:26:34 AM:
9:26:34 AM: Build command from Netlify app
9:26:34 AM: ────────────────────────────────────────────────────────────────
9:26:34 AM:
9:26:34 AM: $ npm run build
9:26:34 AM: > forkify-parcel@1.0.0 build
9:26:34 AM: > parcel build index.html
9:26:35 AM: Failed during stage "building site": Build script returned non-zero exit code: 2
9:26:35 AM: [Error: std::bad_alloc]
9:26:35 AM:
9:26:35 AM: "build.command" failed
9:26:35 AM: ────────────────────────────────────────────────────────────────
9:26:35 AM:
9:26:35 AM: Error message
9:26:35 AM: Command failed with exit code 1: npm run build (https://ntl.fyi/exit-code-1)
9:26:35 AM:
9:26:35 AM: Error location
9:26:35 AM: In Build command from Netlify app:
9:26:35 AM: npm run build
9:26:35 AM:
9:26:35 AM: Resolved config
9:26:35 AM: build:
9:26:35 AM: base: /opt/build/repo/complete-javascript-course/forkify-parcel
9:26:35 AM: command: npm run build
9:26:35 AM: commandOrigin: ui
9:26:35 AM: publish: /opt/build/repo/complete-javascript-course/forkify-parcel/dist
9:26:35 AM: publishOrigin: ui
9:26:35 AM: functionsDirectory: /opt/build/repo/complete-javascript-course/forkify-parcel/netlify/functions
9:26:35 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
9:26:35 AM: Failing build: Failed to build site
9:26:36 AM: Finished processing build request in 55.948s