thanks for your time.
I am having this issue "Unable to find a suitable version for angular" and I don't know what to do because I get many options, if you were in my shoes what would you do in this case??
This is my bower.json file:
{
"name": "365HW",
"version": "0.0.0",
"dependencies": {
"angular": "~1.4.x",
"bootstrap": "~3.x",
"angular-cookies": "~1.4.0",
"angular-resource": "~1.4.0",
"angular-route": "~1.4.0",
"angular-sanitize": "~1.4.0",
"bootstrap-validator": "~0.9.0",
"angular-bootstrap": "latest",
"angular-animate": "latest",
"jquery": "~2.1.x",
"angular-messages": "latest",
"angular-ui-validate": "latest",
"angular-local-storage": "~0.2.3",
"moment": "~2.11",
"angular-moment": "1.x.x"
}
}
C:\wamp\www\365HW>bower install
bower angular-resource#~1.4.0 cached git://github.com/angular/bower-angular-resource.git#1.4.9
bower angular-resource#~1.4.0 validate 1.4.9 against git://github.com/angular/bower-angular-resource.git#~1.4.0
bower angular#~1.4.x cached git://github.com/angular/bower-angular.git#1.4.9
bower angular#~1.4.x validate 1.4.9 against git://github.com/angular/bower-angular.git#~1.4.x
bower bootstrap#~3.x cached git://github.com/twbs/bootstrap.git#3.3.6
bower bootstrap#~3.x validate 3.3.6 against git://github.com/twbs/bootstrap.git#~3.x
bower angular-sanitize#~1.4.0 cached git://github.com/angular/bower-angular-sanitize.git#1.4.9
bower angular-sanitize#~1.4.0 validate 1.4.9 against git://github.com/angular/bower-angular-sanitize.git#~1.4.0
bower angular-cookies#~1.4.0 cached git://github.com/angular/bower-angular-cookies.git#1.4.9
bower angular-cookies#~1.4.0 validate 1.4.9 against git://github.com/angular/bower-angular-cookies.git#~1.4.0
bower angular-route#~1.4.0 cached git://github.com/angular/bower-angular-route.git#1.4.9
bower angular-route#~1.4.0 validate 1.4.9 against git://github.com/angular/bower-angular-route.git#~1.4.0
bower bootstrap-validator#~0.9.0 cached git://github.com/1000hz/bootstrap-validator.git#0.9.0
bower bootstrap-validator#~0.9.0 validate 0.9.0 against git://github.com/1000hz/bootstrap-validator.git#~0.9.0
bower moment#~2.11 cached git://github.com/moment/moment.git#2.11.2
bower moment#~2.11 validate 2.11.2 against git://github.com/moment/moment.git#~2.11
bower angular-moment#1.x.x cached git://github.com/urish/angular-moment.git#1.0.0-beta.4
bower angular-moment#1.x.x validate 1.0.0-beta.4 against git://github.com/urish/angular-moment.git#1.x.x
bower angular-ui-validate#* cached git://github.com/angular-ui/ui-validate.git#1.2.2
bower angular-ui-validate#* validate 1.2.2 against git://github.com/angular-ui/ui-validate.git#*
bower angular-bootstrap#* cached git://github.com/angular-ui/bootstrap-bower.git#1.2.2
bower angular-bootstrap#* validate 1.2.2 against git://github.com/angular-ui/bootstrap-bower.git#*
bower angular-local-storage#~0.2.3 cached git://github.com/grevory/angular-local-storage.git#0.2.5
bower angular-local-storage#~0.2.3 validate 0.2.5 against git://github.com/grevory/angular-local-storage.git#~0.2.3
bower angular-messages#* cached git://github.com/angular/bower-angular-messages.git#1.5.0
bower angular-messages#* validate 1.5.0 against git://github.com/angular/bower-angular-messages.git#*
bower angular-animate#* cached git://github.com/angular/bower-angular-animate.git#1.5.0
bower angular-animate#* validate 1.5.0 against git://github.com/angular/bower-angular-animate.git#*
bower jquery#~2.1.x cached git://github.com/jquery/jquery-dist.git#2.1.4
bower jquery#~2.1.x validate 2.1.4 against git://github.com/jquery/jquery-dist.git#~2.1.x
bower jquery#>= 1.8.3 cached git://github.com/jquery/jquery-dist.git#2.2.1
bower jquery#>= 1.8.3 validate 2.2.1 against git://github.com/jquery/jquery-dist.git#>= 1.8.3
bower jquery#1.9.1 - 2 cached git://github.com/jquery/jquery-dist.git#2.2.1
bower jquery#1.9.1 - 2 validate 2.2.1 against git://github.com/jquery/jquery-dist.git#1.9.1 - 2
bower angular-bootstrap#* new version for git://github.com/angular-ui/bootstrap-bower.git#*
bower angular-bootstrap#* resolve git://github.com/angular-ui/bootstrap-bower.git#*
bower angular-bootstrap#* download https://github.com/angular-ui/bootstrap-bower/archive/1.2.4.tar.gz
bower angular#1.5.0 cached git://github.com/angular/bower-angular.git#1.5.0
bower angular#1.5.0 validate 1.5.0 against git://github.com/angular/bower-angular.git#1.5.0
bower angular-bootstrap#* extract archive.tar.gz
bower angular-bootstrap#* resolved git://github.com/angular-ui/bootstrap-bower.git#1.2.4
Unable to find a suitable version for angular, please choose one:
1) angular#1.4.9 which resolved to 1.4.9 and is required by angular-cookies#1.4.9, angular-resource#1.4.9, angular-route#1.4.9, angular-
sanitize#1.4.9
2) angular#~1.4.x which resolved to 1.4.9 and is required by 365HW
3) angular#>=1.2.0 <1.6.0 which resolved to 1.4.9 and is required by angular-moment#1.0.0-beta.4
4) angular#^1.x which resolved to 1.4.9 and is required by angular-local-storage#0.2.5
5) angular#>= 1.3.0 which resolved to 1.4.9 and is required by angular-ui-validate#1.2.2
6) angular#>=1.4.0 which resolved to 1.4.9 and is required by angular-bootstrap#1.2.4
7) angular#1.5.0 which resolved to 1.5.0 and is required by angular-animate#1.5.0, angular-messages#1.5.0
Prefix the choice with ! to persist it to bower.json
? Answer
Thanks!
Any answer would be ok, just write !1 and everything will still working ok.
Related
I have a project I need to use angularjs 1.2 with. I have a bower.json file with the following:
{
"name": "myproject",
"dependencies": {
"angular": "1.2.32"
},
"resolutions": {
"angular": "1.2.32"
}
}
When I install angular it asks me which version I want, although it should not if I understood correctly. And when I try to install another project like angular-route it asks again and even installs the wrong one:
bower install angular-route
bower angular-route#* cached https://github.com/angular/bower-angular-route.git#1.6.4
bower angular-route#* validate 1.6.4 against https://github.com/angular/bower-angular-route.git#*
bower angular#1.6.4 cached https://github.com/angular/bower-angular.git#1.6.4
bower angular#1.6.4 validate 1.6.4 against https://github.com/angular/bower-angular.git#1.6.4
Unable to find a suitable version for angular, please choose one by typing one of the numbers below:
1) angular#1.2.32 which resolved to 1.2.32 and is required by angamcharts2
2) angular#1.6.4 which resolved to 1.6.4 and is required by angular-route#1.6.4
Prefix the choice with ! to persist it to bower.json
? Answer !1
bower angular resolution Saved angular#1.2.32 as resolution
bower angular-route#^1.6.4 install angular-route#1.6.4
angular-route#1.6.4 bower_components/angular-route
└── angular#1.2.32
I know there is angular-route 1.2.32 but I don't want to install all my packages by hand with the correct version. Why is the "resolutions" not working?
still learning angular and started to use the seed angular application skeleton.
There I got Problems to implement the angular-material library and CSS by npm/bower.
Thats my Problem:
$ bower install angular-material
bower angular-material#* cached https://github.com/angular/bower-material.git#1.1.4
bower angular-material#* validate 1.1.4 against https://github.com/angular/bower-material.git#*
bower angular-animate#^1.4.8 cached https://github.com/angular/bower-angular-animate.git#1.6.4
bower angular-animate#^1.4.8 validate 1.6.4 against https://github.com/angular/bower-angular-animate.git#^1.4.8
bower angular-aria#^1.4.8 cached https://github.com/angular/bower-angular-aria.git#1.6.4
bower angular-aria#^1.4.8 validate 1.6.4 against https://github.com/angular/bower-angular-aria.git#^1.4.8
bower angular-messages#^1.4.8 cached https://github.com/angular/bower-angular-messages.git#1.6.4
bower angular-messages#^1.4.8 validate 1.6.4 against https://github.com/angular/bower-angular-messages.git#^1.4.8
bower angular#1.6.4 cached https://github.com/angular/bower-angular.git#1.6.4
bower angular#1.6.4 validate 1.6.4 against https://github.com/angular/bower-angular.git#1.6.4
bower angular#1.5.11 cached https://github.com/angular/bower-angular.git#1.5.11
bower angular#1.5.11 validate 1.5.11 against https://github.com/angular/bower-angular.git#1.5.11
bower ECONFLICT Unable to find suitable version for angular
How can I solve this´?
Sincerely I don't know what to answer ... I'm newbie in Ionic + Angular ... I'm trying to install Angular Mocks but it says about Angular version.
$ sudo bower install angular-mocks --allow-root
bower angular-mocks#* cached git://github.com/angular/bower-angular-mocks.git#1.4.1
bower angular-mocks#* validate 1.4.1 against git://github.com/angular/bower-angular-mocks.git#*
bower angular#1.4.1 cached git://github.com/angular/bower-angular.git#1.4.1
bower angular#1.4.1 validate 1.4.1 against git://github.com/angular/bower-angular.git#1.4.1
bower angular#^1 cached git://github.com/angular/bower-angular.git#1.4.1
bower angular#^1 validate 1.4.1 against git://github.com/angular/bower-angular.git#^1
bower angular#>= 1.0.8 cached git://github.com/angular/bower-angular.git#1.4.1
bower angular#>= 1.0.8 validate 1.4.1 against git://github.com/angular/bower-angular.git#>= 1.0.8
bower angular#>= 1.2.23 cached git://github.com/angular/bower-angular.git#1.4.1
bower angular#>= 1.2.23 validate 1.4.1 against git://github.com/angular/bower-angular.git#>= 1.2.23
bower angular#1.3.16 cached git://github.com/angular/bower-angular.git#1.3.16
bower angular#1.3.16 validate 1.3.16 against git://github.com/angular/bower-angular.git#1.3.16
bower angular#1.3.13 cached git://github.com/angular/bower-angular.git#1.3.13
bower angular#1.3.13 validate 1.3.13 against git://github.com/angular/bower-angular.git#1.3.13
Unable to find a suitable version for angular, please choose one:
1) angular#1.3.13 which resolved to 1.3.13 and is required by ionic#1.0.0
2) angular#1.3.16 which resolved to 1.3.16 and is required by angular-resource#1.3.16
3) angular#>=1.0.0 <1.5.0 which resolved to 1.4.0 and is required by angular-moment#0.9.2
4) angular#1.4.1 which resolved to 1.4.1 and is required by angular-mocks#1.4.1
5) angular#^1 which resolved to 1.4.1 and is required by angular-slugify#1.2.0
6) angular#>= 1.0.8 which resolved to 1.4.1 and is required by angular-ui-router#0.2.13
7) angular#>= 1.2.23 which resolved to 1.4.1 and is required by ngCordova#0.1.17-alpha
Prefix the choice with ! to persist it to bower.json
? Answer:
angular-mock requires angular, but angular is not in your project. It's bundled up with the ionic library. This means you need version 1.3.13 -> Choose #1
please add this code in bower.json
"resolutions": {
"angular": "1.2.0-rc.2"
}
I'm using Bower in my Vendor folder to keep track of libraries. In my bower.json file I have the following lines
{
"name": "dsl-generated dependencies",
"dependencies": {
"angular": "1.3.4",
"angular-foundation": "latest",
"angular-ui-utils": "latest",
"angular-ui-router": "latest",
"angular-filter": "0.5.1",
"angular-float-thead": "latest",
"ngstorage": "latest",
"ng-file-upload": "2.0.5",
"oauth-ng": "0.3.5",
"restangular": "latest",
"angular-spinkit": "latest"
}
}
When I change it to "angular": "1.3.8" and run rake bower:update I see the following:
Unable to find a suitable version for angular, please choose one:
1) angular#~1.2.26 which resolved to 1.2.28 and is required by oauth-ng#0.3.5
2) angular#* which resolved to 1.3.4 and is required by angular-filter#0.5.1, angular-spinkit#0.3.3, restangular#1.4.0
3) angular#1.3.4 which resolved to 1.3.4 and is required by dsl-generated dependencies
4) angular#>=1.0.8 which resolved to 1.3.4 and is required by ngstorage#0.3.0
5) angular#>=1 which resolved to 1.3.4 and is required by angular-foundation#0.5.1
6) angular#>= 1.0.8 which resolved to 1.3.4 and is required by angular-ui-router#0.2.13
7) angular#>= 1.0.2 which resolved to 1.3.4 and is required by angular-ui-utils#0.2.2Prefix the choice with ! to persist it to bower.json
? Answer::
Anyone know why? Why is it not letting me upgrade to the correct version? Is it because it's locked somewhere? Thanks!
I am trying to install this angular module (angular-stripe). When I type bower install angular-stripe (as the docs recommend) I get:
bower angular-stripe#* cached git://github.com/bendrucker/angular-stripe.git#4.1.0
bower angular-stripe#* validate 4.1.0 against git://github.com/bendrucker/angular-stripe.git#*
bower angular-cookies#~1.3.11 cached git://github.com/angular/bower-angular-cookies.git#1.3.12
bower angular-cookies#~1.3.11 validate 1.3.12 against git://github.com/angular/bower-angular-cookies.git#~1.3.11
bower angular#1.3.12 cached git://github.com/angular/bower-angular.git#1.3.12
bower angular#1.3.12 validate 1.3.12 against git://github.com/angular/bower-angular.git#1.3.12
Unable to find a suitable version for angular, please choose one:
1) angular#1.3.11 which resolved to 1.3.11 and is required by angular-animate#1.3.11, angular-cookies#1.3.11, angular-mocks#1.3.11, angular-resource#1.3.11, angular-route#1.3.11, angular-sanitize#1.3.11, angular-scenario#1.3.11, angular-touch#1.3.11, nightwalker
2) angular#~1.3.2 which resolved to 1.3.11 and is required by angular-stripe#4.1.0
3) angular#1.3.12 which resolved to 1.3.12 and is required by angular-cookies#1.3.12Prefix the choice with ! to persist it to bower.json
This looks like I am installing angular all over again or something. Is there a way to avoid this?
You need to add the resolution
"resolutions": {
"angular": "~1.3.x"
}
In your bower.json file