Ubuntu使用yarn报错:“ERROR: There are no scenarios; mus

331 阅读1分钟

“我报名参加金石计划1期挑战——瓜分10万奖池,这是我的第1篇文章,点击查看活动详情

1.移除cmdtest组件

sudo apt remove cmdtest

2.移除yarn

sudo apt remove  *yarn* 

3.添加yarn密钥

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -

4.设置yarn源

echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

5.更新源索引

sudo apt update

6.安装yarn

sudo apt install yarn