-
Notifications
You must be signed in to change notification settings - Fork 196
Improve Yarn berry support #612
Comments
Note: related issue on |
Is there any progress on this? 😊 I'm also having this issue. |
I'd love to see this fixed to reduce build times for my sites! |
I'm not sure where I saw it on github and it isn't my favourite way but this works in a pinch until it's better supported out of the box: [build.environment]
YARN_ENABLE_GLOBAL_CACHE = "true"
YARN_GLOBAL_FOLDER = "/opt/buildhome/.yarn_cache" Add that to your
Became:
|
We are wasting precious netlify build minutes. |
Thanks @rmcfadzean, your solution works wonderfully for now! |
Can confirm solution provided by @rmcfadzean also works for monorepos that use a custom base directory, am now saving an average of 2 minutes on each build since using this fix |
I don't know if this needs a separate issue but I get the following error with "@netlify/plugin-functions-install-core" (yarn 3.0.2):
I was thinking PnP would be a good solution to speed up build/deploy but seems like there's a bit of work to do. I was also weighing up pnpm, but seems like support would be patchy. Are there any sane workarounds for disabling npm/yarn and manually packaging functions? Or otherwise decoupling the package manager from build process? One other note, I added the functions/ dir as a workspace in yarn to silence various warning errors about stray |
The solution mentioned above #612 (comment) doesn't seem to work anymore with Yarn v3 (#615). Is there an updated fix? |
Could we add to the list:
Corepack is listed as the preferred install method for Yarn according to https://yarnpkg.com/getting-started/install, but it seems it's not possible to use it with Netlify Deploys. |
Seems like there is still no solution for Yarn 3 caching. I tried finding a workaround today but gave up: netlify/build#1535 (comment) HALP! 🙏 |
Hopefully to save a bit of digging for anyone else facing this issue with Yarn v3, here's a working fix: netlify/build#1535 (comment) The change from #612 (comment) is that the cache variable is now |
This is a cover issue to track problems our build system has with Yarn 2/3. Specifically:
yarn-path
configuration property -yarn-path
configuration property forces needless yarn binary installs #594The text was updated successfully, but these errors were encountered: