Monday, October 14, 2024

yarn vs @yarnpkg/cli

yarn exists in two versions: "classic" and "current"
"npm install yarn" gets you classic one, frozen in time
to get current version, need to run this set of commands

> npm install -g @yarnpkg/cli
> corepack enable 
> yarn set version berry
> yarn --version


Yarn @GitHub

yarnpkg/berry: 📦🐈 Active development trunk for Yarn ⚒  v 4.5.0 

yarnpkg/yarn: The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry  v 1.22.22



No comments: