-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
ECONFLICT Unable to find suitable version for angular #866
Comments
I get exactly the same thing. On my local machine it offered me a menu to choose the option to resolve against – even though one of the options had exactly the same version string as the one I'd asked it to install. The problem is on our continuous integration server there's no way to make that selection so committing the updated bower.json to source control breaks our build. |
Those questions only appear when running in an interactive shell. Be sure to persist your choices to the Subsequent installs will obey the choice you made previously. |
Please let me know if persisting the resolutions solved the problem so I can close this out. |
I don't know how to get the resolution to persist now I've already chosen an option. I deleted all the Bower dependencies and It's also not clear why there's a conflict in the first place. I haven't asked for an ambiguous version of Angular and all the dependencies in my bower.json file depend on the exact same version so why is the conflict there? |
Same problem there. Breaking our build on integration server, and no way to force the version. Everything working on local machine... any way around ? |
I can't replicate. I've tried the json file above on an non-interactive shell and works. Can you guys give me a way to replicate? |
My conflicting json was the following :
and the result in an interactive shell :
But this is very strange because bower seems to think angular-scenario 1.2.0-rc.2 depends on angular 1.0.8.. which is totally false ( just check to repository )... Is there any caching of any kind when resolving / updating dependencies ? |
@wayofspark no conflict was produced when installing the dependencies you listed:
What version of bower are you guys using? |
I can confirm this bug. Both running Unable to find a suitable version for angular, please choose one: |
Working bower.json file:
|
using @zajca 's bower.json: https://gist.github.com/eddiemonge/94e40e659f38e9b4726c |
I tried to upgrade to Angular 1.0.2-rc.3 this morning and got the same problem again. I manually modified the version numbers in my bower.json file and it now contains this:
I then ran
|
@robfletcher You have a genuine version conflict here. The Since the version cannot be exactly rc.2 and exactly rc.3 there is a conflict. |
@wibblymat ah, thanks. I selected option 2 and it added this to bower.json:
All seems good now. |
Is there a way to avoid this prompt completely? |
Use |
Okay, thanks. |
@satazor thanks for the tip about prefix choices with |
+1 |
Adding angular entry to "resolutions" in angular worked for me. |
It worked for me by making following changes in "bower.json": "angular": "latest", there was a mismatch in the version updated and the version that I got from Git for "angular-phonecat" |
add --force like this
|
Thank you for your answer at @ykanzi |
I had the same issue with a different setup: The problem was the bower-art-resolver, after updating to the latest version the conflict was resolved. |
@ykanzi 3Q |
I solved this error message by using the same version for angular and angular-route "dependencies": { |
i have some problem and i resolve it by adding : in bower.json file |
Hi, 1. Here is the error message: $ bower install angular-route -S 2. Injected "resolutions" into my project bower.json file "resolutions": { 3. Still getting the same error: How can I resolve this problem? Thanks |
don't use command tool of git, use cmd tool of PC. git error = bower ECONFLICT Unable to find suitable version for xxx |
I had an issue like this due to running MinTTY on Windows 10 (Git Bash). This article explains why, and gives two different solutions: https://willi.am/blog/2016/08/08/docker-for-windows-interactive-sessions-in-mintty-git-bash/ |
Hi,
I have strange problem with bower.
On my PC I run bower install and on my server with same version of bower 1.2.6 I'm getting
I don't know what could cause this
This is how my bower.json looks like.
The text was updated successfully, but these errors were encountered: