How to upgrade yarn version using terminal?

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

How should yarn be upgraded to the latest version?

14条回答
  •  梦毁少年i
    2021-01-30 05:30

    1. Add Yarn Package Directory:

    curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

    1. Install Yarn:

    sudo apt-get update && sudo apt-get install yarn

    Please note that the last command will upgrade yarn to latest version if package already installed.

    For more info you can check the docs: yarn installation

提交回复
热议问题