debian10
#要先安装 gpg curl etc
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
apt update && apt install yarn
#这样默认的node 版本
s:~# node -v
v10.15.2
yarn安装