mrvdot / angular-comments

Multi Platform commenting component for AngularJS
MIT License
13 stars 2 forks source link

Version mismatch #4

Open BrianMitchL opened 9 years ago

BrianMitchL commented 9 years ago

Upon running bower install angular-comments --save, I got the following returned to me:

bower angular-comments#*    not-cached git://github.com/mrvdot/angular-comments.git#*
bower angular-comments#*       resolve git://github.com/mrvdot/angular-comments.git#*
bower angular-comments#*      download https://github.com/mrvdot/angular-comments/archive/v1.2.0.tar.gz
bower angular-comments#*       extract archive.tar.gz
bower angular-comments#*      mismatch Version declared in the json (0.2.0) is different than the resolved one (1.2.0)
bower angular-comments#*      resolved git://github.com/mrvdot/angular-comments.git#1.2.0

The bower.json file says the version is 0.x.x, while you have one version in the releases that is 1.x.x, this causes bower to use that unless there is a newer version (which there is, but the first place is a 0 not 1, so it is determined to be lower).

A workaround is to use "angular-comments": "~0.2.2" in my projects bower.json file, but that's obviously not ideal.