Site fails to Deploy

Hello,
I’m having issues with my site deploying… the build keeps failing.
Netlify site name: brave-mclean-9e3bd5

I’ve tried deploying with npm as well as yarn. Both fail.
They both give message of

Browserslist: caniuse-lite is outdated. Please run the following command: `npx browserslist --update-db

I updated caniuse-lite and the issue still persists.

Both also Preformatted textgive message that it can’t find a file…which is a file in .gitignore

Thank you for your time and your help.
This is the full Deploy Log:

12:52:01 PM: Build ready to start
12:52:03 PM: build-image version: b0258b965567defc4a2d7e2f2dec2e00c8f73ad6
12:52:03 PM: build-image tag: v3.4.1
12:52:03 PM: buildbot version: db1c11c310036491f94882c0e310ea68c81c7e60
12:52:03 PM: Fetching cached dependencies
12:52:03 PM: Failed to fetch cache, continuing with build
12:52:03 PM: Starting to prepare the repo for build
12:52:03 PM: No cached dependencies found. Cloning fresh repo
12:52:03 PM: git clone https://github.com/LauraLeeLee/2nd_covid_react
12:52:04 PM: Preparing Git Reference refs/heads/master
12:52:06 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'build' versus 'build/' in the Netlify UI
12:52:06 PM: Starting build script
12:52:06 PM: Installing dependencies
12:52:06 PM: Python version set to 2.7
12:52:07 PM: v12.18.0 is already installed.
12:52:08 PM: Now using node v12.18.0 (npm v6.14.4)
12:52:08 PM: Started restoring cached build plugins
12:52:08 PM: Finished restoring cached build plugins
12:52:08 PM: Attempting ruby version 2.7.1, read from environment
12:52:09 PM: Using ruby version 2.7.1
12:52:10 PM: Using PHP version 5.6
12:52:10 PM: 5.2 is already installed.
12:52:10 PM: Using Swift version 5.2
12:52:10 PM: Started restoring cached node modules
12:52:10 PM: Finished restoring cached node modules
12:52:10 PM: Started restoring cached yarn cache
12:52:10 PM: Finished restoring cached yarn cache
12:52:10 PM: Installing yarn at version 1.22.4
12:52:10 PM: Installing Yarn!
12:52:10 PM: > Downloading tarball...
12:52:10 PM: [1/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz --> /tmp/yarn.tar.gz.n9HYR5JDyj
12:52:10 PM:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
12:52:10 PM:                                  Dload  Upload   Total   Spent    Left  Speed
12:52:10 PM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
12:52:10 PM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
12:52:10 PM: 100    80  100    80    0     0    257      0 --:--:-- --:--:-- --:--:--   257
12:52:10 PM: 100    93  100    93    0     0    149      0 --:--:-- --:--:-- --:--:--   149
12:52:11 PM: 100   643  100   643    0     0    631      0  0:00:01  0:00:01 --:--:--   631
12:52:11 PM:   0 1215k    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
12:52:11 PM: 100 1215k  100 1215k    0     0   826k      0  0:00:01  0:00:01 --:--:-- 5929k
12:52:11 PM: [2/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz.asc --> /tmp/yarn.tar.gz.n9HYR5JDyj.asc
12:52:11 PM: 100    84  100    84    0     0   3055      0 --:--:-- --:--:-- --:--:--  3055
12:52:11 PM: 100    97  100    97    0     0   1757      0 --:--:-- --:--:-- --:--:--  1757
12:52:12 PM: 100   647  100   647    0     0   2394      0 --:--:-- --:--:-- --:--:--  2394
12:52:12 PM: 100  1028  100  1028    0     0   3313      0 --:--:-- --:--:-- --:--:--  3313
12:52:12 PM: > Verifying integrity...
12:52:12 PM: gpg: Signature made Mon 09 Mar 2020 03:52:13 PM UTC using RSA key ID 69475BAA
12:52:12 PM: gpg: Good signature from "Yarn Packaging <yarn@dan.cx>"
12:52:12 PM: gpg: WARNING: This key is not certified with a trusted signature!
12:52:12 PM: gpg:          There is no indication that the signature belongs to the owner.
12:52:12 PM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907  BBB7 1646 B01B 86E5 0310
12:52:12 PM:      Subkey fingerprint: 6D98 490C 6F1A CDDD 448E  4595 4F77 6793 6947 5BAA
12:52:12 PM: > GPG signature looks good
12:52:12 PM: > Extracting to ~/.yarn...
12:52:12 PM: > Adding to $PATH...
12:52:12 PM: > Successfully installed Yarn 1.22.4! Please open another terminal where the `yarn` command will now be available.
12:52:13 PM: Installing NPM modules using Yarn version 1.22.4
12:52:13 PM: yarn install v1.22.4
12:52:13 PM: warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
12:52:13 PM: [1/4] Resolving packages...
12:52:14 PM: [2/4] Fetching packages...
12:52:46 PM: info fsevents@2.1.2: The platform "linux" is incompatible with this module.
12:52:46 PM: info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
12:52:46 PM: info fsevents@1.2.12: The platform "linux" is incompatible with this module.
12:52:46 PM: info "fsevents@1.2.12" is an optional dependency and failed compatibility check. Excluding it from installation.
12:52:46 PM: [3/4] Linking dependencies...
12:52:46 PM: warning " > @testing-library/user-event@7.2.1" has unmet peer dependency "@testing-library/dom@>=5".
12:52:46 PM: warning " > re-base@4.0.0" has incorrect peer dependency "firebase@^5.3.0".
12:52:46 PM: warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
12:53:09 PM: [4/4] Building fresh packages...
12:53:11 PM: success Saved lockfile.
12:53:11 PM: Done in 58.21s.
12:53:11 PM: NPM modules installed using Yarn
12:53:12 PM: Started restoring cached go cache
12:53:12 PM: Finished restoring cached go cache
12:53:12 PM: go version go1.14.4 linux/amd64
12:53:12 PM: go version go1.14.4 linux/amd64
12:53:12 PM: Installing missing commands
12:53:12 PM: Verify run directory
12:53:13 PM: ​
12:53:13 PM: ┌─────────────────────────────┐
12:53:13 PM: │        Netlify Build        │
12:53:13 PM: └─────────────────────────────┘
12:53:13 PM: ​
12:53:13 PM: ❯ Version
12:53:13 PM:   @netlify/build 5.0.0
12:53:13 PM: ​
12:53:13 PM: ❯ Flags
12:53:13 PM:   deployId: 5f8b2131ee6ba0327def90a2
12:53:13 PM:   mode: buildbot
12:53:13 PM: ​
12:53:13 PM: ❯ Current directory
12:53:13 PM:   /opt/build/repo
12:53:13 PM: ​
12:53:13 PM: ❯ Config file
12:53:13 PM:   No config file was defined: using default values.
12:53:13 PM: ​
12:53:13 PM: ❯ Context
12:53:13 PM:   production
12:53:13 PM: ​
12:53:13 PM: ┌───────────────────────────────────┐
12:53:13 PM: │ 1. Build command from Netlify app │
12:53:13 PM: └───────────────────────────────────┘
12:53:13 PM: ​
12:53:13 PM: $ npm run build
12:53:13 PM: > covid-react@0.1.0 build /opt/build/repo
12:53:13 PM: > react-scripts build
12:53:15 PM: Creating an optimized production build...
12:53:17 PM: Browserslist: caniuse-lite is outdated. Please run the following command: `npx browserslist --update-db`
12:53:18 PM: Browserslist: caniuse-lite is outdated. Please run the following command: `npx browserslist --update-db`
12:53:18 PM: Browserslist: caniuse-lite is outdated. Please run the following command: `npx browserslist --update-db`
12:53:21 PM: Failed to compile.
12:53:21 PM: 
12:53:21 PM: ./src/components/Country.js
12:53:21 PM: Cannot find file '../data/clientInfo.js' in './src/components'.
12:53:22 PM: npm ERR! code ELIFECYCLE
12:53:22 PM: npm ERR! errno 1
12:53:22 PM: npm ERR! covid-react@0.1.0 build: `react-scripts build`
12:53:22 PM: npm ERR! Exit status 1
12:53:22 PM: npm ERR!
12:53:22 PM: npm ERR! Failed at the covid-react@0.1.0 build script.
12:53:22 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
12:53:22 PM: npm ERR! A complete log of this run can be found in:
12:53:22 PM: npm ERR!     /opt/buildhome/.npm/_logs/2020-10-17T16_53_22_006Z-debug.log
12:53:22 PM: ​
12:53:22 PM: ┌─────────────────────────────┐
12:53:22 PM: │   "build.command" failed    │
12:53:22 PM: └─────────────────────────────┘
12:53:22 PM: ​
12:53:22 PM:   Error message
12:53:22 PM:   Command failed with exit code 1: npm run build
12:53:22 PM: ​
12:53:22 PM:   Error location
12:53:22 PM:   In Build command from Netlify app:
12:53:22 PM:   npm run build
12:53:22 PM: ​
12:53:22 PM:   Resolved config
12:53:22 PM:   build:
12:53:22 PM:     command: npm run build
12:53:22 PM:     commandOrigin: ui
12:53:22 PM:     publish: /opt/build/repo/build
12:53:22 PM: Caching artifacts
12:53:22 PM: Started saving node modules
12:53:22 PM: Finished saving node modules
12:53:22 PM: Started saving build plugins
12:53:22 PM: Finished saving build plugins
12:53:22 PM: Started saving yarn cache
12:53:22 PM: Finished saving yarn cache
12:53:22 PM: Started saving pip cache
12:53:22 PM: Finished saving pip cache
12:53:22 PM: Started saving emacs cask dependencies
12:53:22 PM: Finished saving emacs cask dependencies
12:53:22 PM: Started saving maven dependencies
12:53:22 PM: Finished saving maven dependencies
12:53:22 PM: Started saving boot dependencies
12:53:22 PM: Finished saving boot dependencies
12:53:22 PM: Started saving go dependencies
12:53:22 PM: Finished saving go dependencies
12:53:24 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
12:53:24 PM: Failing build: Failed to build site
12:53:24 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
12:53:25 PM: Finished processing build request in 1m21.866291389s

Hey there, thanks for reaching out.

What you are describing sounds a bit like a an issue with case sensitivity on our system.

Can you give this a read through and let us know if that fixes the issue?

hi there, the error isn’t anything to do with caniuse - the error is caused by this file being unable to be found.