How to upgrade yarn version using terminal?

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

How should yarn be upgraded to the latest version?

相关标签:
14条回答
  • 2021-01-30 05:31

    Since you already have yarn installed and only want to upgrade/update. you can simply use

    yarn self-update

    Find ref here https://yarnpkg.com/en/docs/cli/self-update

    0 讨论(0)
  • 2021-01-30 05:33

    On Linux, just run below command at terminal:

    $ curl --compressed -o- -L https://yarnpkg.com/install.sh | bash
    

    After do this, close the current terminal and open it again. And then, run below command to check yarn current version:

    $ yarn --version
    
    0 讨论(0)
提交回复
热议问题