Skip to content

Instantly share code, notes, and snippets.

@kdarty
Last active June 4, 2020 12:21
Show Gist options
  • Save kdarty/d85954f9fc540c17512e802838336bb8 to your computer and use it in GitHub Desktop.
Save kdarty/d85954f9fc540c17512e802838336bb8 to your computer and use it in GitHub Desktop.

How Do You Upgrade Yarn?

I think much like NODE or NPM we get ourselves into these modes sometimes where what should be a simple question leads to a Google Search and of course, a StackOverflow Discussion 🙂

How do you upgrade the package that installs and updates packages?

The answer isn't obvious at all:

yarn policies set-version

From the Documentation, there is this note:

Note that this command also is the preferred way to upgrade Yarn - it will work no matter how you originally installed it, which might sometimes prove difficult to figure out otherwise.

Reference

Source Discussion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment