Yarn ERROR: There are no scenarios; must have at least one(纱线错误:没有场景;必须至少有一个)
问题描述
我尝试安装 Yarn 并且当我使用 yarn
命令时我得到了:
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?
推荐答案
看起来我试图执行错误的纱线,因为在我的 Ubuntu 18.04 上运行 sudo apt install yarn
给了我来自 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
yarn
这篇关于纱线错误:没有场景;必须至少有一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:纱线错误:没有场景;必须至少有一个


- 从原点悬停时触发 translateY() 2022-01-01
- 我不能使用 json 使用 react 向我的 web api 发出 Post 请求 2022-01-01
- 如何向 ipc 渲染器发送添加回调 2022-01-01
- 使用 iframe URL 的 jQuery UI 对话框 2022-01-01
- 如何显示带有换行符的文本标签? 2022-01-01
- 在不使用循环的情况下查找数字数组中的一项 2022-01-01
- 为什么我的页面无法在 Github 上加载? 2022-01-01
- 为什么悬停在委托事件处理程序中不起作用? 2022-01-01
- 是否可以将标志传递给 Gulp 以使其以不同的方式 2022-01-01
- 如何调试 CSS/Javascript 悬停问题 2022-01-01