volta icon indicating copy to clipboard operation
volta copied to clipboard

Volta should create a shim for `yarnpkg`

Open yume-chan opened this issue 3 years ago • 9 comments

Yarn actually has two bin files:

image

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.

yume-chan avatar Nov 30 '22 10:11 yume-chan

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.

charlespierce avatar Dec 03 '22 20:12 charlespierce

whats the difference between the 2 binaries? (yarn vs yarnpkg) i noticed that volta let me install both

migs35323 avatar Dec 27 '22 10:12 migs35323

whats the difference between the 2 binaries? (yarn vs yarnpkg) i noticed that volta let me install both

migs35323 avatar Dec 27 '22 10:12 migs35323

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.

aleqsio avatar Aug 01 '23 12:08 aleqsio

+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.

4lgn avatar Sep 18 '23 13:09 4lgn

Expo uses yarnpkg. I'm getting errors as well. The shim would be great!

cerpinn avatar Oct 05 '23 04:10 cerpinn

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

elwayman02 avatar Oct 31 '23 21:10 elwayman02

@charlespierce any updates on whether we'll be able to get a fix for this in Volta?

elwayman02 avatar Oct 31 '23 21:10 elwayman02

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… 😏)

chriskrycho avatar Jan 10 '24 00:01 chriskrycho