8:00:22 AM: Build ready to start
8:00:28 AM: build-image version: d7b3dbfb0846505993c9a131894d1858074c90b4 (focal)
8:00:28 AM: build-image tag: v4.10.1
8:00:28 AM: buildbot version: 2009834004fbab70d95494495d61f0ada38da28b
8:00:28 AM: Fetching cached dependencies
8:00:28 AM: Failed to fetch cache, continuing with build
8:00:28 AM: Starting to prepare the repo for build
8:00:28 AM: No cached dependencies found. Cloning fresh repo
8:00:28 AM: git clone GitHub - Arndy345/air-bnb-experience-page
8:00:29 AM: Preparing Git Reference refs/heads/main
8:00:29 AM: Parsing package.json dependencies
8:00:30 AM: Starting build script
8:00:30 AM: Installing dependencies
8:00:30 AM: Python version set to 2.7
8:00:31 AM: v16.16.0 is already installed.
8:00:31 AM: Now using node v16.16.0 (npm v8.11.0)
8:00:31 AM: Started restoring cached build plugins
8:00:31 AM: Finished restoring cached build plugins
8:00:31 AM: Attempting ruby version 2.7.2, read from environment
8:00:32 AM: Using ruby version 2.7.2
8:00:32 AM: Using PHP version 8.0
8:00:32 AM: No npm workspaces detected
8:00:32 AM: Started restoring cached node modules
8:00:32 AM: Finished restoring cached node modules
8:00:33 AM: Installing NPM modules using NPM version 8.11.0
8:00:33 AM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
8:00:33 AM: npm WARN config location in the cache, and they are managed by
8:00:33 AM: npm WARN config cacache
.
8:00:33 AM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
8:00:33 AM: npm WARN config location in the cache, and they are managed by
8:00:33 AM: npm WARN config cacache
.
8:00:39 AM: npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: Array.prototype.sort() - JavaScript | MDN
8:00:45 AM: npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
8:00:49 AM: added 1442 packages, and audited 1443 packages in 16s
8:00:49 AM: 205 packages are looking for funding
8:00:49 AM: run npm fund
for details
8:00:49 AM: 6 high severity vulnerabilities
8:00:49 AM: To address all issues (including breaking changes), run:
8:00:49 AM: npm audit fix --force
8:00:49 AM: Run npm audit
for details.
8:00:49 AM: NPM modules installed
8:00:49 AM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
8:00:49 AM: npm WARN config location in the cache, and they are managed by
8:00:49 AM: npm WARN config cacache
.
8:00:49 AM: Started restoring cached go cache
8:00:49 AM: Finished restoring cached go cache
8:00:49 AM: Installing Go version 1.17 (requested 1.17)
8:00:55 AM: unset GOOS;
8:00:55 AM: unset GOARCH;
8:00:55 AM: export GOROOT=‘/opt/buildhome/.gimme/versions/go1.17.linux.amd64’;
8:00:55 AM: export PATH=“/opt/buildhome/.gimme/versions/go1.17.linux.amd64/bin:${PATH}”;
8:00:55 AM: go version >&2;
8:00:55 AM: export GIMME_ENV=“/opt/buildhome/.gimme/env/go1.17.linux.amd64.env”
8:00:55 AM: go version go1.17 linux/amd64
8:00:55 AM: Installing missing commands
8:00:55 AM: Verify run directory
8:00:56 AM:
8:00:56 AM: ────────────────────────────────────────────────────────────────
8:00:56 AM: Netlify Build
8:00:56 AM: ────────────────────────────────────────────────────────────────
8:00:56 AM:
8:00:56 AM: ❯ Version
8:00:56 AM: @netlify/build 27.9.1
8:00:56 AM:
8:00:56 AM: ❯ Flags
8:00:56 AM: baseRelDir: true
8:00:56 AM: buildId: 62f357858385677fe4a8c9b6
8:00:56 AM: deployId: 62f357858385677fe4a8c9b8
8:00:56 AM: systemLogFile: 0
8:00:56 AM:
8:00:56 AM: ❯ Current directory
8:00:56 AM: /opt/build/repo
8:00:56 AM:
8:00:56 AM: ❯ Config file
8:00:56 AM: No config file was defined: using default values.
8:00:56 AM:
8:00:56 AM: ❯ Context
8:00:56 AM: production
8:00:56 AM:
8:00:56 AM: ────────────────────────────────────────────────────────────────
8:00:56 AM: 1. Build command from Netlify app
8:00:56 AM: ────────────────────────────────────────────────────────────────
8:00:56 AM:
8:00:56 AM: $ npm run build
8:00:56 AM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
8:00:56 AM: npm WARN config location in the cache, and they are managed by
8:00:56 AM: npm WARN config cacache
.
8:00:56 AM: > react-project@0.1.0 build
8:00:56 AM: > react-scripts build
8:00:57 AM: Creating an optimized production build…
8:01:02 AM: [BABEL] Note: The code generator has deoptimised the styling of /opt/build/repo/src/components/images/photo-grid.svg as it exceeds the max of 500KB.
8:01:07 AM: [BABEL] Note: The code generator has deoptimised the styling of undefined as it exceeds the max of 500KB.
8:01:22 AM:
8:01:22 AM: Treating warnings as errors because process.env.CI = true.
8:01:22 AM: Most CI servers set it automatically.
8:01:22 AM:
8:01:22 AM: Failed to compile.
8:01:22 AM:
8:01:22 AM: [eslint]
8:01:22 AM: src/components/Card.js
8:01:22 AM: Line 7:4: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images jsx-a11y/alt-text
8:01:22 AM: Line 12:5: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images jsx-a11y/alt-text
8:01:22 AM: src/components/Hero.js
8:01:22 AM: Line 8:5: Redundant alt attribute. Screen-readers already announce img
tags as an image. You don’t need to use the words image
, photo,
or picture
(or any specified custom words) in the alt prop jsx-a11y/img-redundant-alt
8:01:22 AM: src/data.js
8:01:22 AM: Line 1:1: Assign array to a variable before exporting as module default import/no-anonymous-default-export
8:01:22 AM:
8:01:22 AM: ────────────────────────────────────────────────────────────────
8:01:22 AM: “build.command” failed
8:01:22 AM: ────────────────────────────────────────────────────────────────
8:01:22 AM:
8:01:22 AM: Error message
8:01:22 AM: Command failed with exit code 1: npm run build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
8:01:22 AM:
8:01:22 AM: Error location
8:01:22 AM: In Build command from Netlify app:
8:01:22 AM: npm run build
8:01:22 AM:
8:01:22 AM: Resolved config
8:01:22 AM: build:
8:01:22 AM: command: npm run build
8:01:22 AM: commandOrigin: ui
8:01:22 AM: publish: /opt/build/repo/build
8:01:22 AM: publishOrigin: ui
8:01:22 AM: Caching artifacts
8:01:23 AM: Creating deploy upload records
8:01:22 AM: Started saving node modules
8:01:22 AM: Finished saving node modules
8:01:22 AM: Started saving build plugins
8:01:22 AM: Finished saving build plugins
8:01:22 AM: Started saving pip cache
8:01:23 AM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2 (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)
8:01:22 AM: Finished saving pip cache
8:01:22 AM: Started saving emacs cask dependencies
8:01:22 AM: Finished saving emacs cask dependencies
8:01:22 AM: Started saving maven dependencies
8:01:22 AM: Finished saving maven dependencies
8:01:22 AM: Started saving boot dependencies
8:01:22 AM: Finished saving boot dependencies
8:01:22 AM: Started saving rust rustup cache
8:01:22 AM: Finished saving rust rustup cache
8:01:22 AM: Started saving go dependencies
8:01:22 AM: Finished saving go dependencies
8:01:23 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
8:01:23 AM: Failing build: Failed to build site
8:01:23 AM: Finished processing build request in 55.582185921s
Hi @Arndy345
The issues that caused the build to fail are in the following lines
This is because of
Ideally you would address each of these (the first few are to do with accessibility which is an important factor of design) by correcting the problem identified. Or you can (potentially) ignore these issues by changing the build command to CI= npm run build
.