Deploy failed for fascinating-starship-9efeb9

PLEASE help us help you by writing a good post!

5:30:11 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)
5:30:06 PM: Netlify Build
5:30:06 PM: ────────────────────────────────────────────────────────────────
5:30:06 PM: ​
5:30:06 PM: ❯ Version
5:30:06 PM: @netlify/build 29.20.6
5:30:06 PM: ​
5:30:06 PM: ❯ Flags
5:30:06 PM: baseRelDir: true
5:30:06 PM: buildId: 64e785787ef88828e4720ce5
5:30:06 PM: deployId: 64e785787ef88828e4720ce7
5:30:06 PM: ​
5:30:06 PM: ❯ Current directory
5:30:06 PM: /opt/build/repo
5:30:06 PM: ​
5:30:06 PM: ❯ Config file
5:30:06 PM: No config file was defined: using default values.
5:30:06 PM: ​
5:30:06 PM: ❯ Context
5:30:06 PM: production
5:30:07 PM: ​
5:30:07 PM: Build command from Netlify app
5:30:07 PM: ────────────────────────────────────────────────────────────────
5:30:07 PM: ​
5:30:07 PM: $ parcel build index.html
5:30:08 PM: :rotating_light: /opt/build/repo/images/sprite.svg: Invalid Version: undefined
5:30:08 PM: at new SemVer (/opt/build/repo/node_modules/@babel/preset-env/node_modules/semver/semver.js:354:11)
5:30:08 PM: at compare (/opt/build/repo/node_modules/@babel/preset-env/node_modules/semver/semver.js:687:10)
5:30:08 PM: at Function.lt (/opt/build/repo/node_modules/@babel/preset-env/node_modules/semver/semver.js:728:10)
5:30:08 PM: at /opt/build/repo/node_modules/@babel/preset-env/lib/index.js:224:15
5:30:08 PM: at Object.default (/opt/build/repo/node_modules/@babel/helper-plugin-utils/lib/index.js:33:12)
5:30:08 PM: at getEnvPlugins (/opt/build/repo/node_modules/parcel-bundler/src/transforms/babel/env.js:62:34)
5:30:08 PM: at getEnvConfig (/opt/build/repo/node_modules/parcel-bundler/src/transforms/babel/env.js:12:25)
5:30:08 PM: at async getBabelConfig (/opt/build/repo/node_modules/parcel-bundler/src/transforms/babel/config.js:32:19)
5:30:08 PM: at async babelTransform (/opt/build/repo/node_modules/parcel-bundler/src/transforms/babel/transform.js:6:16)
5:30:08 PM: at async JSAsset.pretransform (/opt/build/repo/node_modules/parcel-bundler/src/assets/JSAsset.js:83:5)
5:30:10 PM: ​
5:30:10 PM: build.command failed
5:30:10 PM: ────────────────────────────────────────────────────────────────
5:30:10 PM: ​
5:30:10 PM: Error message
5:30:10 PM: Command failed with exit code 1: parcel build index.html (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
5:30:10 PM: ​
5:30:10 PM: Error location
5:30:10 PM: In Build command from Netlify app:
5:30:10 PM: parcel build index.html
5:30:10 PM: ​
5:30:10 PM: Resolved config
5:30:10 PM: build:
5:30:10 PM: command: parcel build index.html
5:30:10 PM: commandOrigin: ui
5:30:10 PM: publish: /opt/build/repo/dist
5:30:10 PM: publishOrigin: ui
5:30:11 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
5:30:11 PM: Failing build: Failed to build site
5:30:12 PM: Finished processing build request in 20.148s

  • we need to know your netlify site name. Example: gifted-antelope-58b104.netlify.app
  • DNS issues? Tell us the custom domain, tell us the error message! We can’t help if we don’t know your domain.
  • Build problems? Link or paste the FULL build log & build settings screenshot

The better the post - the faster the answer.

Is there a reason you are using this command? I recommend you give this guide a read. [Support Guide] Debugging Netlify site builds

Yes! It is my index.html file in my repo. If i wont provide how can deploy read by html file. I’ll look into the link you provided thanks.