How to upgrade yarn version using terminal?

后端 未结 14 2227
一生所求
一生所求 2021-01-30 05:03

How should yarn be upgraded to the latest version?

14条回答
  •  醉梦人生
    2021-01-30 05:13

    Not remembering how i've installed yarn the command that worked for me was:

    yarn policies set-version

    This command updates the current yarn version to the latest stable.

    From the documentation:

    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

提交回复
热议问题