I see on the website that the latest version is 1.22, but I have 1.21.1 and there are no available updates from deb https://dl.yarnpkg.com/debian/ stable main
.
What is the current behavior?
The latest package available is 1.21.1.
~Additionally, I am unable to upgrade a project to Yarn 2 following the instructions here. yarn set version berry
is returning an error Command 'set' not found
. Perhaps this is only possible from v1.22? Or perhaps I must install the Yarn 2 package as a dependency of the project first, but that is not documented on the installation page.~
What is the expected behavior?
I expect version 1.22 to be available in the repository.
Things I've tried
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
Environment
v13.8.0
(from NodeSource Debian/Ubuntu repositories)1.21.1
Same here
Upgrade your project to Yarn 2:
yarn add -D yarn@berry
./node_modules/.bin/yarn set version berry
Check the Yarn version, it should have similar output:
$ yarn --version
2.0.0-rc.28
I am also wondering why the yarn package of the Linux repository is not updated.
Confirmation: https://www.ubuntuupdates.org/ppa/yarn
me too
Note that you can also install the v1.22.0 .deb from the releases page. Of course, that won't make it available in the repository.
I'd much prefer to install it through apt. seems like a simple fix from the yarn team,
i agree
Is there any followup on this? I can't install yarn 2.0 on my project (at least through the instructions in the documentation here https://yarnpkg.com/getting-started/install w/ yarn 1.21.x, with the following error:
$ yarn set version berry
yarn run v1.21.1
error Command "set" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@MadaraUchiha Hello, there's a workaround and you can find it in the thread.
Here's a link to it
The issue is not that we can't install Yarn v2, it's that we can't install version 1.22, contradicting the installation instructions on the website. https://classic.yarnpkg.com/en/docs/install#debian-stable which suggests that 1.22 is the stable version which should be installed when running apt install yarn
But the latest we can get (apt update && apt upgrade
) is 1.21.1.
Version 1.22.0-1
is live now, just got it through apt update
馃憤
I was finally able to update from apt as well 馃憤
Most helpful comment
Version
1.22.0-1
is live now, just got it throughapt update
馃憤https://www.ubuntuupdates.org/ppa/yarn