Error during Yarn install

Hi there,

I’m having issues with deploying my site: style-me.netlify.app

here’s the error message I’m getting:

8:26:33 PM: Build ready to start
8:26:35 PM: build-image version: ca811f47d4c1cbd1812d1eb6ecb0c977e86d1a1d
8:26:35 PM: build-image tag: v3.3.20
8:26:35 PM: buildbot version: 78b5536ab4f742c26705d3e953381b9cde6e22ef
8:26:35 PM: Fetching cached dependencies
8:26:35 PM: Failed to fetch cache, continuing with build
8:26:35 PM: Starting to prepare the repo for build
8:26:35 PM: No cached dependencies found. Cloning fresh repo
8:26:35 PM: git clone GitHub - aprilescobar/Style-Me-Front-End
8:26:37 PM: Preparing Git Reference refs/heads/master
8:26:38 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: ‘build’ versus ‘build/’ in the Netlify UI
8:26:38 PM: Starting build script
8:26:38 PM: Installing dependencies
8:26:38 PM: Python version set to 2.7
8:26:39 PM: v12.18.0 is already installed.
8:26:40 PM: Now using node v12.18.0 (npm v6.14.4)
8:26:40 PM: Started restoring cached build plugins
8:26:40 PM: Finished restoring cached build plugins
8:26:40 PM: Attempting ruby version 2.7.1, read from environment
8:26:41 PM: Using ruby version 2.7.1
8:26:42 PM: Using PHP version 5.6
8:26:42 PM: 5.2 is already installed.
8:26:42 PM: Using Swift version 5.2
8:26:42 PM: Started restoring cached node modules
8:26:42 PM: Finished restoring cached node modules
8:26:42 PM: Started restoring cached yarn cache
8:26:42 PM: Finished restoring cached yarn cache
8:26:42 PM: Installing yarn at version 1.22.4
8:26:42 PM: Installing Yarn!
8:26:42 PM: > Downloading tarball…
8:26:42 PM: [1/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz → /tmp/yarn.tar.gz.C8SICgnGTy
8:26:42 PM: % Total % Received % Xferd Average Speed Time Time Time Current
8:26:42 PM: Dload Upload Total Spent Left Speed
8:26:42 PM: 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
8:26:42 PM: 100 80 100 80 0 0 289 0 --:–:-- --:–:-- --:–:-- 289
8:26:42 PM: 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
8:26:42 PM: 100 93 100 93 0 0 159 0 --:–:-- --:–:-- --:–:-- 550
8:26:43 PM: 100 630 100 630 0 0 740 0 --:–:-- --:–:-- --:–:-- 740
8:26:43 PM: 22 1215k 22 271k 0 0 194k 0 0:00:06 0:00:01 0:00:05 194k
8:26:43 PM: 100 1215k 100 1215k 0 0 835k 0 0:00:01 0:00:01 --:–:-- 15.6M
8:26:43 PM: [2/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz.asc → /tmp/yarn.tar.gz.C8SICgnGTy.asc
8:26:43 PM: 100 84 100 84 0 0 2781 0 --:–:-- --:–:-- --:–:-- 2781
8:26:43 PM: 100 97 100 97 0 0 1197 0 --:–:-- --:–:-- --:–:-- 1197
8:26:43 PM: 100 634 100 634 0 0 5549 0 --:–:-- --:–:-- --:–:-- 5549
8:26:43 PM: 100 1028 100 1028 0 0 6658 0 --:–:-- --:–:-- --:–:-- 6658
8:26:43 PM: > Verifying integrity…
8:26:43 PM: gpg: Signature made Mon 09 Mar 2020 03:52:13 PM UTC using RSA key ID 69475BAA
8:26:43 PM: gpg: Good signature from “Yarn Packaging yarn@dan.cx
8:26:43 PM: gpg: WARNING: This key is not certified with a trusted signature!
8:26:43 PM: gpg: There is no indication that the signature belongs to the owner.
8:26:43 PM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907 BBB7 1646 B01B 86E5 0310
8:26:43 PM: Subkey fingerprint: 6D98 490C 6F1A CDDD 448E 4595 4F77 6793 6947 5BAA
8:26:43 PM: > GPG signature looks good
8:26:43 PM: > Extracting to ~/.yarn…
8:26:43 PM: > Adding to $PATH…
8:26:44 PM: > Successfully installed Yarn 1.22.4! Please open another terminal where the yarn command will now be available.
8:26:44 PM: Installing NPM modules using Yarn version 1.22.4
8:26:45 PM: yarn install v1.22.4
8:26:45 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.
8:26:45 PM: [1/4] Resolving packages…
8:26:45 PM: [2/4] Fetching packages…
8:27:11 PM: error @loadingio/loading.css@2.0.0: The engine “node” is incompatible with this module. Expected version “=7.6.0”. Got “12.18.0”
8:27:11 PM: error Found incompatible module.
8:27:11 PM: info Visit yarn install | Yarn for documentation about this command.
8:27:11 PM: Error during Yarn install
8:27:11 PM: Error running command: Build script returned non-zero exit code: 1
8:27:11 PM: Failing build: Failed to build site
8:27:11 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 1
8:27:11 PM: Finished processing build request in 36.206985247s

hey there, the problem is definitely to do with the above error.

I’m not exactly sure what is causing this - but here is some generally debugging advice that might be useful.

This Support Guide contains a ton of useful debugging tips.

If you are still having problems, please provide as much information as you can on what you have already tried, what your build settings are, your package.json, etc. Thanks!

Hi Perry,

Thank you so much for your input! I ended up creating a new repo and was able to deploy everything smoothly. I’m pretty sure I got the error from installing a loading package I installed at the very beginning of my project.

Anyway, everything’s good to go!

Thanks again,
April

1 Like

awesome! glad its working! Come back any time you need more help.