安装yarn

来自linuxsa wiki
跳转到导航 跳转到搜索

大部分直接看官方文档就行了

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

npm install --global yarn@rc


yarn安装