安装yarn

来自linux中国网wiki
Evan讨论 | 贡献2020年1月3日 (五) 09:20的版本
跳到导航 跳到搜索

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安装