node.jsyarnpkg-v4

Yarn Berry - No Releases folder


Really simple question that I can't seem to find an answer to. When I run yarn set version stable, I get the confirmation that the version was set to 4.1.1. However, in my .yarn folder, there is no .yarn/releases folder created for shipping the package manager with the project. It's causing my Docker build to fail, because the configuration is trying to use Yarn v1

Configuration:

If you were to isolate the build steps to get here, it would be:

It's weird because my colleagues who authored another Yarn project on a Mac got the release in their project directory. I've also never had this problem before, though I admit I usually just use NPM. The current project is a fork of the other one I mentioned (I needed it for testing purposes, and they didn't let me mess with their stuff).

Any links to documentation would be greatly appreciated. Running Get-Command yarn just points me to the global script install for Yarn v1, but when I run yarn --version I get confirmation that the correct version is installed.


Solution

  • Had the same problem on win 11 and yarn 4.4.1, adding the extra flag --yarn-path e.g. yarn set version --yarn-path stable works for me.