build-image icon indicating copy to clipboard operation
build-image copied to clipboard

Adding Yarn Berry (v2/2.0.0/v3/3.0.0/3.1.1) to netlify.toml doesn't work

Open dioptre opened this issue 3 years ago • 0 comments

Describe the bug All new versions of yarn don't seem to work out of the box, I've tried 2/3/berry and fails:

Installing yarn at version 3.0.0
6:00:30 PM: Installing Yarn!
6:00:30 PM: > Downloading tarball...
6:00:30 PM: [1/2]: https://yarnpkg.com/downloads/3.0.0/yarn-v3.0.0.tar.gz --> /tmp/yarn.tar.gz.UEGAJKmNaD
6:00:30 PM:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
6:00:30 PM:                                  Dload  Upload   Total   Spent    Left  Speed
6:00:30 PM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
6:00:30 PM: 100    77  100    77    0     0    416      0 --:--:-- --:--:-- --:--:--   418
6:00:30 PM: 100    91  100    91    0     0    308      0 --:--:-- --:--:-- --:--:--   308
6:00:31 PM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
6:00:31 PM: curl: (22) The requested URL returned error: 404

To Reproduce

Steps to reproduce the behavior: I just use the following in the netlify.toml:

[build.environment]
  NODE_VERSION = "17.1.0"
  NETLIFY_USE_YARN = "true"
  #YARN_CACHE_FOLDER = "/opt/buildhome/.yarn_cache"
  YARN_VERSION = "2.0.0" #or other version

and get the error above.

Thanks

dioptre avatar Apr 29 '22 01:04 dioptre