volta
volta copied to clipboard
Volta should create a shim for `yarnpkg`
Yarn actually has two bin files:

And some tools are invoking yarnpkg instead: https://github.com/expo/expo-cli/issues/1455
So volta should also create a shim for yarnpkg to maintain compatibility.
Thanks for reporting @yume-chan! Interestingly, it looks like that's been the case since 2016 🤯 I don't know how we missed that or never got a report about it until now! Will definitely look to include that shim as well.
whats the difference between the 2 binaries? (yarn vs yarnpkg) i noticed that volta let me install both
whats the difference between the 2 binaries? (yarn vs yarnpkg) i noticed that volta let me install both
I've just now bumped into this issue and can confirm this is quite a problem when using volta together with expo – symlinks don't work with Volta error: Could not find executable "yarnpkg", installing yarnpkg is pointing to a super old package, so the only way that I found is to remove volta entirely.
+1, installing packages with npx expo install <package> is not possible when using volta. Given the popularity of expo along with all their documentation using such installation of packages to ensure compatibility, this is quite a pain.
Expo uses yarnpkg. I'm getting errors as well. The shim would be great!
It looks like this is now also impacting the browserslist/update-db package, which switched to use yarnpkg a month ago: https://github.com/browserslist/update-db/issues/24
See also: https://github.com/browserslist/update-db/issues/27
@charlespierce any updates on whether we'll be able to get a fix for this in Volta?
Should be reasonably straightforward, I think; we just need to finish clearing the deck for a lot of small infrastructural issues that have piled up and from which we are slowly digging our way out at present. (Also, if you wanted to learn some Rust… 😏)