Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upERROR: There are no scenarios; must have at least one. #2821
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
OmerHerera
Mar 2, 2017
@wangfaxi1985, please check again your yarn version, the latest version is 0.21.3 and the tagged version is 0.22.0-0.
Also check that you run yarn command in the folder where your package.jsonis located
Thanks
OmerHerera
commented
Mar 2, 2017
|
@wangfaxi1985, please check again your |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Daniel15
Mar 4, 2017
Member
You've got the wrong yarn cmdtest package: http://manpages.ubuntu.com/manpages/xenial/man1/yarn.1.html. Uninstalling cmdtest should fix this. Once you've uninstalled it, follow the instructions on https://yarnpkg.com/en/docs/install#linux-tab to add the Yarn repo:
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
|
You've got the wrong
|
Daniel15
closed this
Mar 4, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
becdetat
Jun 5, 2017
cmdtest seems to be installed by default on Ubuntu 17.04 at least, so perhaps this should be added to the installation instructions...
For anyone that finds this, if you're getting an error on sudo apt-get install yarn run sudo apt remove cmdtest first.
becdetat
commented
Jun 5, 2017
•
|
For anyone that finds this, if you're getting an error on |
xbili
referenced this issue
Jul 11, 2017
Merged
Add note about cmdtest in Linux installation docs #567
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
peter-kehl
Sep 28, 2017
On Ubuntu (at least 17.04), after you sudo apt remove cmdtest, first follow https://yarnpkg.com/en/docs/install#linux-tab > Ubuntu. Only then sudo apt-get install yarn. If you don't follow https://yarnpkg.com/en/docs/install#linux-tab, then running sudo apt-get install yarn will install cmdtest again.
peter-kehl
commented
Sep 28, 2017
|
On Ubuntu (at least 17.04), after you |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
istals
Oct 31, 2017
On Ubuntu 17.10 I'm not able to install yarn - I removed cmdtest package, but sudo apt-get install yarn reinstall cmdtest.
istals
commented
Oct 31, 2017
|
On Ubuntu 17.10 I'm not able to install yarn - I removed |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
yuqingc
Nov 3, 2017
@istals I have the same problem as you do. The cmdtest is still installed even if I remove it firstly. How do I get yarn on Ubuntu 17.10?
yuqingc
commented
Nov 3, 2017
|
@istals I have the same problem as you do. The cmdtest is still installed even if I remove it firstly. How do I get yarn on Ubuntu 17.10? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jdorleans
Nov 3, 2017
For Ubuntu 17.10, try the workaround:
sudo apt remove cmdtest
sudo apt install npm
sudo npm install -g yarn
jdorleans
commented
Nov 3, 2017
•
|
For Ubuntu 17.10, try the workaround:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Daniel15
Nov 3, 2017
Member
For Ubuntu 17.10, you need to add the Yarn repo first.
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 remove cmdtest
sudo apt install yarn
Make sure you remove cmdtest if you have it installed.
Prefer this to installing via npm.
@jdorleans - you don't have to install npm if you're using Yarn :)
|
For Ubuntu 17.10, you need to add the Yarn repo first.
Make sure you remove cmdtest if you have it installed. Prefer this to installing via npm. @jdorleans - you don't have to install npm if you're using Yarn :) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
yuqingc
Nov 3, 2017
@jdorleans Thanks for your comment. I have successfully installed yarn by using npm install -g yarn.
yuqingc
commented
Nov 3, 2017
•
|
@jdorleans Thanks for your comment. I have successfully installed yarn by using |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
sheerun
Nov 27, 2017
Contributor
Ubuntu: let's name binary of node package nodejs, but also let cmdtest binary be yarn
|
Ubuntu: let's name binary of |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
cserpell
Nov 30, 2017
This would be much easier if instead of installing it as root, it was installed in user space.
cserpell
commented
Nov 30, 2017
|
This would be much easier if instead of installing it as root, it was installed in user space. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Daniel15
Nov 30, 2017
Member
@cserpell You can do that if you like. There's an install script you can use, or you could just download the Yarn tarball and extract it wherever you want. Details are on the site. Regardless, you're still going to have the issue of having multiple different multiple yarn binaries if you have cmdtest installed.
@sheerun To be fair, cmdtest used the yarn command first, before Yarn even existed.
|
@cserpell You can do that if you like. There's an install script you can use, or you could just download the Yarn tarball and extract it wherever you want. Details are on the site. Regardless, you're still going to have the issue of having multiple different multiple @sheerun To be fair, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
cserpell
Nov 30, 2017
@Daniel15 That's what I did, specially because I cannot install programs where I am working. The trick is just overriding any installed binary with my own bin directory.
cserpell
commented
Nov 30, 2017
|
@Daniel15 That's what I did, specially because I cannot install programs where I am working. The trick is just overriding any installed binary with my own |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
egonyuri
Mar 22, 2018
I was having the same problem on Ubuntu 18.04 however I was able to fix using the following commands:
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
egonyuri
commented
Mar 22, 2018
•
|
I was having the same problem on Ubuntu 18.04 however I was able to fix using the following commands:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Nazarah
Apr 12, 2018
@Daniel15 I followed your instructions in previous comment and tried to reinstall yarn again.
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
after checking the version, i found the version to be 1.5.1
Is it ok? Or I did something wrong.
Also would it create any problem if I uninstall cmdtest and all its dependencies?
Nazarah
commented
Apr 12, 2018
|
@Daniel15 I followed your instructions in previous comment and tried to reinstall yarn again.
after checking the version, i found the version to be 1.5.1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Daniel15
Apr 12, 2018
Member
@Nazarah - That's correct, 1.5.1 is the latest stable version. If you want to get 1.6.0, you need to add the RC repo instead (replace "stable" with "rc" in /etc/apt/sources.list.d/yarn.list)
|
@Nazarah - That's correct, 1.5.1 is the latest stable version. If you want to get 1.6.0, you need to add the RC repo instead (replace "stable" with "rc" in |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Nazarah
Apr 12, 2018
@Daniel15
unintalling cmdtest and dependency and installing yarn.txt
The 1st text file shows commad results from uninstalling cmdtest and all its dependencies till using your suggested commands to install yarn
this files shows when I tried to run yarn from home
Nazarah
commented
Apr 12, 2018
|
@Daniel15 The 1st text file shows commad results from uninstalling cmdtest and all its dependencies till using your suggested commands to install yarn this files shows when I tried to run yarn from home |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Daniel15
Apr 12, 2018
Member
I edited my comment because I realised that 1.5.1 is the latest version of Yarn :)
|
I edited my comment because I realised that 1.5.1 is the latest version of Yarn :) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Nazarah
commented
Apr 12, 2018
|
Thanks for your feedback. :D |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Nazarah
Apr 12, 2018
Also check that you run yarn command in the folder where your package.jsonis located
Do you mean package.json for mastarm?
Nazarah
commented
Apr 12, 2018
Do you mean package.json for mastarm? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
florianeBhz
Apr 24, 2018
@becdetat I have Ubuntu 17.04 installed but when I type yarn --version after installing yarn as recommended, i got this as message « yarn » is not installed yet.You can install by typing : sudo apt install cmdtest. Then I run sudo apt install cmdtest but it failled.
florianeBhz
commented
Apr 24, 2018
|
@becdetat I have Ubuntu 17.04 installed but when I type |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Daniel15
Apr 25, 2018
Member
@florianeBhz You need to add the Yarn repo first:
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
Then you can sudo apt-get update && sudo apt-get install yarn
More details on the Yarn site: https://yarnpkg.com/en/docs/install#debian-stable
|
@florianeBhz You need to add the Yarn repo first:
Then you can More details on the Yarn site: https://yarnpkg.com/en/docs/install#debian-stable |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
benjaoming
May 14, 2018
For your Debian package, consider either conflicting with cmdtest in the debian/control; add a diversion in case the cmdtest executable already exists; use the update-alternatives pattern described here: https://wiki.debian.org/DebianAlternatives
benjaoming
commented
May 14, 2018
|
For your Debian package, consider either conflicting with |
added a commit
to JREAM/config-ubuntu
that referenced
this issue
May 16, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Daniel15
May 28, 2018
Member
; use the update-alternatives pattern described here: wiki.debian.org/DebianAlternatives
Alternatives are for when you have multiple different apps that do the same thing. It's not for dealing with naming conflicts.
Having said that, adding a conflict with cmdtest seems reasonable. We can do that!
Alternatives are for when you have multiple different apps that do the same thing. It's not for dealing with naming conflicts. Having said that, adding a conflict with cmdtest seems reasonable. We can do that! |
added a commit
that referenced
this issue
May 28, 2018
Daniel15
referenced this issue
May 28, 2018
Merged
Update Debian package to "conflict" with cmdtest #5898
added a commit
that referenced
this issue
May 28, 2018
added a commit
to yvanzo/musicbrainz-docker
that referenced
this issue
Jul 3, 2018
added a commit
to yvanzo/musicbrainz-docker
that referenced
this issue
Jul 4, 2018
added a commit
to yvanzo/musicbrainz-docker
that referenced
this issue
Jul 4, 2018
added a commit
to metabrainz/musicbrainz-docker
that referenced
this issue
Jul 6, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
davux
Sep 30, 2018
As a side comment: Ubuntu devs seemed to consider that when the user types apt-get install foo, if foo doesn't exist but there's a command with that name provided by package bar, then it's a good idea to almost silently install package bar instead.
$ sudo apt-get install yarn
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'cmdtest' instead of 'yarn'
[...]
$ dpkg -S bin/yarn
cmdtest: /usr/bin/yarn
I personally think it's one of those cases when people think implementing a less strict behaviour will make people's life easier but really just complicates things because it introduces randomness (for example this issue).
davux
commented
Sep 30, 2018
|
As a side comment: Ubuntu devs seemed to consider that when the user types
I personally think it's one of those cases when people think implementing a less strict behaviour will make people's life easier but really just complicates things because it introduces randomness (for example this issue). |
wangfaxi1985 commentedMar 2, 2017
i want use "yarn " in my npm project
when run shell " yarn " in the shell,
it throw "ERROR: There are no scenarios; must have at least one. "
what problem?
yarn --version
0.27
node -v
v6.9.5
uname -a
Linux wfx-pc 4.4.0-3-deepin-amd64 #1 SMP Deepin 4.4.30-2 (2016-12-01) x86_64 GNU/Linux