zurb / foundation-apps

The first front-end framework created for developing fully responsive web apps.
http://foundation.zurb.com/apps
MIT License
1.58k stars 216 forks source link

ECONFLICT Unable to find suitable version for angular (using 1.4) #724

Closed jose-nunez closed 8 years ago

jose-nunez commented 8 years ago

Hello. I'm quite excited about start using this package on my project. I'm trying to install it through Bower, but I'm getting the following output:

    bower foundation-apps#x.x       cached git://github.com/zurb/foundation-apps.git#1.1.0
    bower foundation-apps#x.x     validate 1.1.0 against git://github.com/zurb/foundation-apps.git#x.x
    bower fastclick#~1.0.3          cached git://github.com/ftlabs/fastclick.git#1.0.6
    bower fastclick#~1.0.3        validate 1.0.6 against git://github.com/ftlabs/fastclick.git#~1.0.3
    bower viewport-units-buggyfill#~0.4.1           cached git://github.com/rodneyrehm/viewport-units-buggyfill.git#0.4.1
    bower viewport-units-buggyfill#~0.4.1         validate 0.4.1 against git://github.com/rodneyrehm/viewport-units-buggyfill.git#~0.4.1
    bower tether#~0.6.5                             cached git://github.com/HubSpot/tether.git#0.6.5
    bower tether#~0.6.5                           validate 0.6.5 against git://github.com/HubSpot/tether.git#~0.6.5
    bower angular#~1.3.4                            cached git://github.com/angular/bower-angular.git#1.3.20
    bower angular#~1.3.4                          validate 1.3.20 against git://github.com/angular/bower-angular.git#~1.3.4
    bower angular-ui-router#~0.2.12                 cached git://github.com/angular-ui/ui-router.git#0.2.15
    bower angular-ui-router#~0.2.12               validate 0.2.15 against git://github.com/angular-ui/ui-router.git#~0.2.12
    bower angular-animate#~1.3.4                    cached git://github.com/angular/bower-angular-animate.git#1.3.20
    bower angular-animate#~1.3.4                  validate 1.3.20 against git://github.com/angular/bower-angular-animate.git#~1.3.4
    bower hammerjs#~2.0.4                           cached git://github.com/EightMedia/hammer.js.git#2.0.4
    bower hammerjs#~2.0.4                         validate 2.0.4 against git://github.com/EightMedia/hammer.js.git#~2.0.4
    bower angular#1.4.x                             cached git://github.com/angular/bower-angular.git#1.4.8
    bower angular#1.4.x                           validate 1.4.8 against git://github.com/angular/bower-angular.git#1.4.x
    bower angular#>=1.2.26 <=1.5                    cached git://github.com/angular/bower-angular.git#1.4.8
    bower angular#>=1.2.26 <=1.5                  validate 1.4.8 against git://github.com/angular/bower-angular.git#>=1.2.26 <=1.5
    bower angular#1.4.7                             cached git://github.com/angular/bower-angular.git#1.4.7
    bower angular#1.4.7                           validate 1.4.7 against git://github.com/angular/bower-angular.git#1.4.7
    bower angular#>=1.0.0 <1.6.0                    cached git://github.com/angular/bower-angular.git#1.4.8
    bower angular#>=1.0.0 <1.6.0                  validate 1.4.8 against git://github.com/angular/bower-angular.git#>=1.0.0 <1.6.0
    bower angular#>=1.3.0                           cached git://github.com/angular/bower-angular.git#1.4.8
    bower angular#>=1.3.0                         validate 1.4.8 against git://github.com/angular/bower-angular.git#>=1.3.0
    bower                                        ECONFLICT Unable to find suitable version for angular

These are my bower config dependencies:

"dependencies": {
    "angular": "1.4.x",
    "angular-utils-pagination":"x.x.x",
    "angular-translate":"2.x.x",
    "angular-translate-loader-url":"x.x.x",
    "angular-sanitize":"x.x.x",
    "socket.io-client":"x.x.x",
    "angular-load":"x.x.x",
    "angular-route": "1.4.x",
    "paper":"0.x.x",
    "foundation-apps":"x.x"
  }

I already tried changing Angular version to 1.3, but same problem. Any idea? Thank you very much

tlkiong commented 8 years ago

This happens because one of your dependencies uses angular version < 1.4 (which is the prerequisite for foundation to work on).

How I solved it was by using bower resolutions. Check it out. Eg:

"resolutions": {
      "angular": "1.4.6"
}
jose-nunez commented 8 years ago

Magically it's working now without this solution... another mystery of the universe I guess. Thank you for your help