Skip to content

Instantly share code, notes, and snippets.

@wesinator
Last active March 31, 2023 19:03
Show Gist options
  • Save wesinator/deb1fe2d2540c42ff5db66953f5bd2e2 to your computer and use it in GitHub Desktop.
Save wesinator/deb1fe2d2540c42ff5db66953f5bd2e2 to your computer and use it in GitHub Desktop.
Switch between yarn classic (v1.22.19) and yarn trunk (https://github.com/yarnpkg/berry)
# use yarn trunk
# https://yarnpkg.com/getting-started/install#updating-the-global-yarn-version
corepack enable
corepack prepare yarn@<version> --activate
# reinstall yarn classic after installing yarn latest
# https://classic.yarnpkg.com/en/docs/install
npm i -g yarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment