ubuntu18.04下载yarn
下载curl
sudo apt-get update && sudo apt-get install curl
配置库
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
下载yarn
sudo apt-get update && sudo apt-get install yarn
如果使用nvm
应该使用以下命令
sudo apt-get install --no-install-recommends yarn