ubuntu 安装 yarn

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## install nodejs
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
apt-get install nodejs -y

## add repo for yarn
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

## install yarn
apt-get update
apt-get install yarn

## now we have it
yarn --version
william 支付宝支付宝
william 微信微信
0%