-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: There are no scenarios; must have at least one. #2821
Comments
@wangfaxi1985, please check again your |
You've got the wrong
|
For anyone that finds this, if you're getting an error on |
On Ubuntu (at least 17.04), after you |
On Ubuntu 17.10 I'm not able to install yarn - I removed |
@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? |
For Ubuntu 17.10, try the workaround:
|
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 :) |
@jdorleans Thanks for your comment. I have successfully installed yarn by using |
Ubuntu: let's name binary of |
This would be much easier if instead of installing it as root, it was installed in user space. |
@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, |
@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 |
I was having the same problem on Ubuntu 18.04 however I was able to fix using the following commands:
|
@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 |
@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 |
@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 |
I edited my comment because I realised that 1.5.1 is the latest version of Yarn :) |
Thanks for your feedback. :D |
Do you mean package.json for mastarm? |
@becdetat I have Ubuntu 17.04 installed but when I type |
@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 |
For your Debian package, consider either conflicting with |
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! |
The `cmdtest` package also installs a `yarn` command, and people often get confused by this (see #2821). If we specify that the Yarn package conflicts with the cmdtest package, installing Yarn will automatically uninstall cmdtest.
The `cmdtest` package also installs a `yarn` command, and people often get confused by this (see #2821). If we specify that the Yarn package conflicts with the cmdtest package, installing Yarn will automatically uninstall cmdtest.
since both packages conflict, see yarnpkg/yarn#2821 Note: Since Ubuntu 17.04, cmdtest is installed by default.
- Update yarnpkg apt repository only. - Remove cmdtest if already installed as it conflicts with yarn, see yarnpkg/yarn#2821 (Since Ubuntu 17.04, cmdtest is installed by default.)
- Update yarnpkg apt repository only. - Remove cmdtest if already installed as it conflicts with yarn, see yarnpkg/yarn#2821 (Since Ubuntu 17.04, cmdtest is installed by default.)
- Update yarnpkg apt repository only. - Remove cmdtest if already installed as it conflicts with yarn, see yarnpkg/yarn#2821 (Since Ubuntu 17.04, cmdtest is installed by default.)
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). |
Just use nvm to use npm to install yarn ...
You're welcome 🌮 |
https://github.com/creationix/nvm is the official project on Github. It's literally who created it. I don't know of a safer way to do it. The alternative would be using PPA which would point to nodesource.com ... only two ways I know of. |
@shawnolson-fp - that's not going to solve the problem listed in this
issue. The issue is that a *different* app that provides a "yarn" command
is installed. The only proper way of fixing that is by either uninstalling
the other app or removing it from your $PATH. You can change the order of
your $PATH instead, but having two apps that provide the same command can
be pretty confusing anyways.
Sent from my phone.
…On Tue, Nov 13, 2018, 1:24 PM Benjamin Bach ***@***.*** wrote:
@shawnolson-fp <https://github.com/shawnolson-fp> - people should not
trust a random script to install NVM. Isn't there an official method that
you can quote instead of spreading an insecure installation pattern? Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2821 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAFnHe9xSSKcMf0WCOzezhob80rXrzeTks5uuzimgaJpZM4MQv_p>
.
|
I understand the issue but like you said, the way around it is too much trouble for most people who just want yarn to work. Why on earth Debian decided to choose cmdtest instead of yarn is what the problem is. I am simply providing an alternative way to install yarn and npm in the same $PATH as nvm - A pretty slick package if you ask me ... And until the issue is fixed, very few people will want to mess around with environment variables to solve something that seems so simple. |
@shawnolson-fp haha, yes I noticed that Also, Just use nvm to use npm to install yarn ...... cruel cruel world. I hope everyone will think twice before doing this to get Btw. most Debian issues are solved revolving this. Except having an official package seems a bit out of reach still. I would definitely not go with your pattern, it's overcomplicated.
Point the finger back at |
@Daniel15 looking over this issue, it seems safe enough to close+freeze with a final note about reading the documentation? It seems keeping it open spins off undesirable workarounds? References for ongoing Debian work: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=843021 |
@benjaoming lol - that is something I didn't know, man what a mess! I feel for both sides, because IMO Debian and Yarn are both the best at what they are, so I'm torn 😢 At this point, most people will probably just say $# it and use npm. 😩 |
Not related to the issue at hand, but Yarn is a community project, not a Facebook one - it would be |
@arcanis lol it was just an example 😋... so literal in here, ha! |
Good idea. I'm going to lock this as lots of unrelated (but valuable!) discussion is happening here. Feel free to create separate issues if there's anything left to discuss. In the meantime, please uninstall |
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
The text was updated successfully, but these errors were encountered: