william 约 100 字 预计阅读 1 分钟
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
|