安装yarn成功后,输入yarn显示“There are no scenarios ; must have at least one"

安装yarn成功后,在命令行中输入yarn,显示“There are no scenarios ; must have at least one"

我想可能版本过于低,版本为0.22,所以无法编译文件。

解决方法:

#移除cmdtest
sudo apt remove cmdtest
sudo apt remove 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

sudo apt update
sudo apt install yarn

如果此时出现下面这个错误

我的方法是暴力移除,输入

sudo rm /etc/apt/sources.list.d/yarn.list

然后在重新安装yarn即可。

这下就可以编译文件了。

猜你喜欢

转载自blog.csdn.net/weixin_40533355/article/details/81135112