毛线错误:没有任何场景。必须至少有一个 [英] Yarn ERROR: There are no scenarios; must have at least one
本文介绍了毛线错误:没有任何场景。必须至少有一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试安装纱,并且在我使用纱时我得到的code>命令:
I tried to install Yarn and when I used the yarn
command I got:
00h00m00s 0/0: : ERROR: There are no scenarios; must have at least one.
我的 yarn --version
是 0.32
。为什么它不起作用?
my yarn --version
is 0.32
. Why doesn't it work?
推荐答案
看起来我试图执行错误的yarn,因为只运行<$我的Ubuntu 18.04上的c $ c> sudo安装纱线给了我来自cmdtest的纱线。
It looks like that I was trying to execute the wrong yarn, because simply running sudo apt install yarn
on my Ubuntu 18.04 gave me yarn from cmdtest.
所以我通过卸载将其解决:
So I solved by uninstalling it:
sudo apt remove yarn
并通过将其安装为官方网站进行了解释,在我的情况下(Ubuntu 18.04)是以下内容:
And by installing it as the official website explains, which in my case (Ubuntu 18.04) it was the following:
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
这篇关于毛线错误:没有任何场景。必须至少有一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文