Hi there
I am trying to deploy the website that has been established in this section. I keep getting a build error when attempting to deploy the website. Here is the error log:
- Build command from Netlify app
12:46:36 PM: ────────────────────────────────────────────────────────────────
12:46:36 PM:
12:46:36 PM: $ parcel build index.html
12:46:39 PM:/opt/build/repo/images/sprite.svg: Invalid Version: undefined
12:46:39 PM: at new SemVer (/opt/build/repo/node_modules/@babel/preset-env/node_modules/semver/semver.js:314:11)
12:46:39 PM: at compare (/opt/build/repo/node_modules/@babel/preset-env/node_modules/semver/semver.js:647:10)
12:46:39 PM: at lt (/opt/build/repo/node_modules/@babel/preset-env/node_modules/semver/semver.js:688:10)
12:46:39 PM: at /opt/build/repo/node_modules/@babel/preset-env/lib/index.js:280:22
12:46:39 PM: at Object.default (/opt/build/repo/node_modules/@babel/helper-plugin-utils/lib/index.js:22:12)
12:46:39 PM: at getEnvPlugins (/opt/build/repo/node_modules/parcel-bundler/src/transforms/babel/env.js:62:34)
12:46:39 PM: at getEnvConfig (/opt/build/repo/node_modules/parcel-bundler/src/transforms/babel/env.js:12:25)
12:46:39 PM: at async getBabelConfig (/opt/build/repo/node_modules/parcel-bundler/src/transforms/babel/config.js:32:19)
12:46:39 PM: at async babelTransform (/opt/build/repo/node_modules/parcel-bundler/src/transforms/babel/transform.js:6:16)
12:46:39 PM: at async JSAsset.pretransform (/opt/build/repo/node_modules/parcel-bundler/src/assets/JSAsset.js:83:5)
12:46:41 PM:
12:46:41 PM: ────────────────────────────────────────────────────────────────
12:46:41 PM: “build.command” failed
12:46:41 PM: ────────────────────────────────────────────────────────────────
12:46:41 PM:
12:46:41 PM: Error message
12:46:41 PM: Command failed with exit code 1: parcel build index.html
12:46:41 PM:
12:46:41 PM: Error location
12:46:41 PM: In Build command from Netlify app:
12:46:41 PM: parcel build index.html
12:46:41 PM:
12:46:41 PM: Resolved config
12:46:41 PM: build:
12:46:41 PM: command: parcel build index.html
12:46:41 PM: commandOrigin: ui
12:46:41 PM: environment:
12:46:41 PM: - CI
12:46:41 PM: publish: /opt/build/repo/dist
12:46:42 PM: Caching artifacts
12:46:42 PM: Started saving node modules
12:46:42 PM: Finished saving node modules
12:46:42 PM: Started saving build plugins
12:46:42 PM: Finished saving build plugins
12:46:42 PM: Started saving pip cache
12:46:42 PM: Finished saving pip cache
12:46:42 PM: Started saving emacs cask dependencies
12:46:42 PM: Finished saving emacs cask dependencies
12:46:42 PM: Started saving maven dependencies
12:46:42 PM: Finished saving maven dependencies
12:46:42 PM: Started saving boot dependencies
12:46:42 PM: Finished saving boot dependencies
12:46:42 PM: Started saving rust rustup cache
12:46:42 PM: Finished saving rust rustup cache
12:46:42 PM: Started saving go dependencies
12:46:42 PM: Finished saving go dependencies
12:46:45 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
12:46:45 PM: Failing build: Failed to build site
12:46:45 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2
12:46:45 PM: Finished processing build request in 39.276574084s
I also get these 2 lines which I don’t know how to address:
12:46:33 PM: 42 packages are looking for funding
12:46:33 PM: run npm fund
for details
12:46:33 PM: found 1 high severity vulnerability
12:46:33 PM: run npm audit fix
to fix them, or npm audit
for details