Home
Support Forums

Failed to install yarn

Hello I’m facing a problem with one of my sites on Netlify: orderfast-sfv4.netlify.app

So far with each PR I create a preview link but suddenly I can’t build the site as it’s failing to install / download yarn

5:27:06 PM: Parsing package.json dependencies
5:27:06 PM: Starting build script
5:27:06 PM: Installing dependencies
5:27:06 PM: Python version set to 2.7
5:27:07 PM: v12.18.0 is already installed.
5:27:08 PM: Now using node v12.18.0 (npm v6.14.4)
5:27:08 PM: Started restoring cached build plugins
5:27:08 PM: Finished restoring cached build plugins
5:27:08 PM: Attempting ruby version 2.7.2, read from environment
5:27:09 PM: Using ruby version 2.7.2
5:27:09 PM: Using PHP version 5.6
5:27:09 PM: Started restoring cached yarn cache
5:27:09 PM: Finished restoring cached yarn cache
5:27:09 PM: Installing yarn at version 1.22.10
5:27:09 PM: Installing Yarn!
5:27:09 PM: > Downloading tarball...
5:27:09 PM: [1/2]: https://yarnpkg.com/downloads/1.22.10/yarn-v1.22.10.tar.gz --> /tmp/yarn.tar.gz.jftE3lsgN2
5:27:09 PM:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
5:27:09 PM:                                  Dload  Upload   Total   Spent    Left  Speed
5:27:10 PM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
5:27:10 PM: 100    81  100    81    0     0    363      0 --:--:-- --:--:-- --:--:--   364
5:27:10 PM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
5:27:10 PM: curl: (60) server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
5:27:10 PM: More details here: http://curl.haxx.se/docs/sslcerts.html
5:27:10 PM: curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
5:27:10 PM:  bundle file isn't adequate, you can specify an alternate file
5:27:10 PM:  using the --cacert option.
5:27:10 PM: If this HTTPS server uses a certificate signed by a CA represented in
5:27:10 PM:  the bundle, the certificate verification probably failed due to a
5:27:10 PM:  problem with the certificate (it might be expired, or the name might
5:27:10 PM:  not match the domain name in the URL).
5:27:10 PM: If you'd like to turn off curl's verification of the certificate, use
5:27:10 PM:  the -k (or --insecure) option.
5:27:10 PM: [2/2]: https://yarnpkg.com/downloads/1.22.10/yarn-v1.22.10.tar.gz.asc --> /tmp/yarn.tar.gz.jftE3lsgN2.asc
5:27:10 PM: 100    85  100    85    0     0   1788      0 --:--:-- --:--:-- --:--:--  1788
5:27:10 PM: 100    85  100    85    0     0   1784      0 --:--:-- --:--:-- --:--:--     0
5:27:10 PM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
5:27:10 PM: curl: (60) server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
5:27:10 PM: More details here: http://curl.haxx.se/docs/sslcerts.html
5:27:10 PM: curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
5:27:10 PM:  bundle file isn't adequate, you can specify an alternate file
5:27:10 PM:  using the --cacert option.
5:27:10 PM: If this HTTPS server uses a certificate signed by a CA represented in
5:27:10 PM:  the bundle, the certificate verification probably failed due to a
5:27:10 PM:  problem with the certificate (it might be expired, or the name might
5:27:10 PM:  not match the domain name in the URL).
5:27:10 PM: If you'd like to turn off curl's verification of the certificate, use
5:27:10 PM:  the -k (or --insecure) option.
5:27:10 PM: > Failed to download https://yarnpkg.com/downloads/1.22.10/yarn-v1.22.10.tar.gz.
5:27:10 PM: mv: cannot stat '/opt/buildhome/.yarn': No such file or directory
5:27:10 PM: No yarn workspaces detected
5:27:10 PM: Started restoring cached node modules
5:27:10 PM: Finished restoring cached node modules
5:27:10 PM: /opt/build-bin/run-build-functions.sh: line 141: yarn: command not found
5:27:10 PM: Installing NPM modules using Yarn version
5:27:10 PM: /opt/build-bin/run-build-functions.sh: line 152: yarn: command not found
5:27:10 PM: Error during Yarn install
5:27:10 PM: Build was terminated: Build script returned non-zero exit code: 1
5:27:11 PM: Creating deploy upload records
5:27:11 PM: Failing build: Failed to build site
5:27:11 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1
5:27:11 PM: Finished processing build request in 9.690707997s
3 Likes

I am also experiencing the same issue with

curl: (60) server certificate verification failed.
and
Failed to download https://yarnpkg.com/downloads/1.22.10/yarn-v1.22.10.tar.gz.

Seems like the Netlify Backend is doing something sneaky…

3 Likes

Same issue here, no matter which version of yarn you try to use! :frowning:

1 Like

This has been happening for several hours already and no fix/announcement. I’m wondering what their QA is doing to let such breaking changes go live on the production.

2 Likes

I’m having the same issue… during my first PR with Netlify!

Thought we were doing something wrong, glad I thought to check the forums.

1 Like

we are definitely investigating this - please stay tuned, we’ll have an update soon.

hi there, i am closing this thread to keep all information in one place, but we are working on this (see netlifystatus.com) and there is a workaround available, more here:

2 Likes