Relative Content

Tag Archive for yarn-v4

How do I upgrade legacy yarn to yarn 4.x globally?

As far as I know, npm install -g yarn or sudo apt install yarn installs the legacy yarn version which is 1.22.x. If you want to migrate to yarn 4.x for a specific project, it is possible using yarn set version stable (or replace stable with the specific version to upgrade to). However, my use case required installing yarn 4.x globally as opposed to per project(which I know is discouraged in general) and I could not find any information on how to do that.