How to upgrade yarn version using terminal?

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

How should yarn be upgraded to the latest version?

14条回答
  •  长情又很酷
    2021-01-30 05:25

    If you already have yarn 1.x and you want to upgrade to yarn 2. You need to do something a bit different:

    yarn set version berry
    

    Where berry is the code name for yarn version 2. See this migration guide here for more info.

提交回复
热议问题