Debian/Ubuntu 安装 yarn
1、配置仓库
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
2、更新并安装
sudo apt update && sudo apt install yarn
3、查看安装版本
yarn --version