Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

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

Closed
dioptre opened this issue Apr 29, 2022 · 3 comments
Closed
Assignees
Labels
type: bug code to address defects in shipped code

Comments

@dioptre
Copy link

dioptre commented Apr 29, 2022

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 dioptre added the type: bug code to address defects in shipped code label Apr 29, 2022
@lukasholzer lukasholzer self-assigned this Oct 19, 2022
@lukasholzer
Copy link
Contributor

If you are using yarn berry you can now just specify the packageManager field inside the package.json and you will get exactly this version

@dioptre
Copy link
Author

dioptre commented Oct 20, 2022

Amazing will test this. Tried it last week and it wasn’t working. Thanks!

@lukasholzer
Copy link
Contributor

This issue should be fixed now. There is still one with yarn plug n play for our plugins but this is handled in a separate issue: netlify/build#1535

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

2 participants