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

 

posted @ 2021-02-04 20:22  飞奔的猪猪  阅读(435)  评论(0编辑  收藏  举报