Yarn: What is the recommended way to keep yarn updated?

Created on 9 Mar 2017  ·  3Comments  ·  Source: yarnpkg/yarn

Which operating system are you using:
Windows 10 Pro x64

Please describe the steps you took when trying to install Yarn and what went wrong:
Installed yarn from the MSI package from the website

How do I update yarn? Following are non-working solutions:

  • yarn self-update it's been deprecated
  • yarn global upgrade or npm install -g yarn : Didn't install yarn from npm , installed it from MSI installer, please suggest if npm install and MSI will work inter-operably or one is preferred over the other

Background

I did google and even search the opened and closed issues, but a lot of the issues were closed without solutions. I did see a PR which was merged for one of the issues to give a nag message but I never see it, what must I do to see it?

Most helpful comment

self-update will eventually be fixed: #1139

On Windows, you can install Yarn via Chocolatey, and then do choco upgrade yarn to upgrade whenever a new version is available. Chocolatey essentially just downloads and runs the MSI behind the scenes.

I did see a PR which was merged for one of the issues to give a nag message but I never see it, what must I do to see it?

Yarn should check for upgrades once per day, and let you know if a new version is available.

please suggest if npm install and MSI will work inter-operably or one is preferred over the other

Installing Yarn via npm will cause weird issues, please avoid it and just use the MSI 👍

All 3 comments

self-update will eventually be fixed: #1139

On Windows, you can install Yarn via Chocolatey, and then do choco upgrade yarn to upgrade whenever a new version is available. Chocolatey essentially just downloads and runs the MSI behind the scenes.

I did see a PR which was merged for one of the issues to give a nag message but I never see it, what must I do to see it?

Yarn should check for upgrades once per day, and let you know if a new version is available.

please suggest if npm install and MSI will work inter-operably or one is preferred over the other

Installing Yarn via npm will cause weird issues, please avoid it and just use the MSI 👍

@Daniel15 thanks for the quick reply

why does yarn not have a self update or a way to update without installing additional package to update

Was this page helpful?
0 / 5 - 0 ratings