naver / egjs

Javascript components group that brings easiest and fastest way to build a web application in your way.
https://naver.github.io/egjs
Other
935 stars 80 forks source link

bower.json 에 jquery 버전 표기가 올바른 것 맞나요? #19

Closed hiuny closed 8 years ago

hiuny commented 8 years ago

issue 글이 다 영언데 한글로 올려도 되나 고민하다가 올립니다. 죄송^^; egjs 를 bower 를 이용하여 install 하려는데 jquery 를 먼저 1.11.3 버전을 깔고 설치하려니 jquery 버전 충돌이 나서 설치가 되지 않네요; bower.json 을 보니 jquery 버전 표기가 "~1.7.0" 이라고 되어 있는데 "~1.7.0" 이라고 정의하면

1.7.0 과 크거나 같고 1.8.0 보다 작다.

의 의미라서 충돌이 나는 것 같고, ">=1.7.0" 이라고 정의해야 맞지 않나 생각이 드는데.. 버전 정의가 올바른 게 맞는지 확인 한번 부탁드립니다. 혹시 제가 잘못이해한 부분이 있다면 죄송^^;;

semver https://github.com/npm/node-semver#tilde-ranges-123-12-1

semver 에서 발췌

오류 재현

// install jquery 1.11.3 version
bower install jquery#1.11.3

// install egjs
bower install egjs

// log
bower egjs#*                    cached git://github.com/egjs/egjs.git#1.0.0
bower egjs#*                  validate 1.0.0 against git://github.com/egjs/egjs.git#*
bower hammer.js#~2.0.4          cached git://github.com/hammerjs/hammer.js.git#2.0.4
bower hammer.js#~2.0.4        validate 2.0.4 against git://github.com/hammerjs/hammer.js.git#~2.0.4
bower qunit#~1.17.1             cached git://github.com/jquery/qunit.git#1.17.1
bower qunit#~1.17.1           validate 1.17.1 against git://github.com/jquery/qunit.git#~1.17.1
bower jquery#~1.7.0             cached git://github.com/jquery/jquery.git#1.7.2
bower jquery#~1.7.0           validate 1.7.2 against git://github.com/jquery/jquery.git#~1.7.0
bower outlayer#~1.4.1           cached git://github.com/metafizzy/outlayer.git#1.4.2
bower outlayer#~1.4.1         validate 1.4.2 against git://github.com/metafizzy/outlayer.git#~1.4.1
bower doc-ready#1.0.x           cached git://github.com/desandro/doc-ready.git#1.0.4
bower doc-ready#1.0.x         validate 1.0.4 against git://github.com/desandro/doc-ready.git#1.0.x
bower eventie#~1.0.3            cached git://github.com/desandro/eventie.git#1.0.6
bower eventie#~1.0.3          validate 1.0.6 against git://github.com/desandro/eventie.git#~1.0.3
bower matches-selector#~1.0.2   cached git://github.com/desandro/matches-selector.git#1.0.3
bower matches-selector#~1.0.2 validate 1.0.3 against git://github.com/desandro/matches-selector.git#~1.0.2
bower get-size#~1.2.2           cached git://github.com/desandro/get-size.git#1.2.2
bower get-size#~1.2.2         validate 1.2.2 against git://github.com/desandro/get-size.git#~1.2.2
bower fizzy-ui-utils#~1.0.1     cached git://github.com/metafizzy/fizzy-ui-utils.git#1.0.1
bower fizzy-ui-utils#~1.0.1   validate 1.0.1 against git://github.com/metafizzy/fizzy-ui-utils.git#~1.0.1
bower eventEmitter#>=4.2 <5     cached git://github.com/Olical/EventEmitter.git#4.3.0
bower eventEmitter#>=4.2 <5   validate 4.3.0 against git://github.com/Olical/EventEmitter.git#>=4.2 <5
bower get-style-property#~1.0.4 cached git://github.com/desandro/get-style-property.git#1.0.4
bower get-style-property#~1.0.4         validate 1.0.4 against git://github.com/desandro/get-style-property.git#~1.0.4
bower get-style-property#1.x              cached git://github.com/desandro/get-style-property.git#1.0.4
bower get-style-property#1.x            validate 1.0.4 against git://github.com/desandro/get-style-property.git#1.x
bower                                  ECONFLICT Unable to find suitable version for jquery
sculove commented 8 years ago

Please upgrade bower. If you upgrade bower, you can see following message. 2015-12-21 5 33 54

egjs git:(master) bower install jquery#1.11.3
bower cached        git://github.com/jquery/jquery.git#1.7.2
bower validate      1.7.2 against git://github.com/jquery/jquery.git#~1.7.0
bower cached        git://github.com/jquery/qunit.git#1.17.1
bower validate      1.17.1 against git://github.com/jquery/qunit.git#~1.17.1
bower cached        git://github.com/metafizzy/outlayer.git#1.4.2
bower validate      1.4.2 against git://github.com/metafizzy/outlayer.git#~1.4.1
bower cached        git://github.com/hammerjs/hammer.js.git#2.0.4
bower validate      2.0.4 against git://github.com/hammerjs/hammer.js.git#~2.0.4
bower cached        git://github.com/cubiq/iscroll.git#5.1.3
bower validate      5.1.3 against git://github.com/cubiq/iscroll.git#~5.1.3
bower cached        git://github.com/jquery/jquery.git#1.11.3
bower validate      1.11.3 against git://github.com/jquery/jquery.git#1.11.3
bower cached        git://github.com/desandro/get-size.git#1.2.2
bower validate      1.2.2 against git://github.com/desandro/get-size.git#~1.2.2
bower cached        git://github.com/desandro/eventie.git#1.0.6
bower validate      1.0.6 against git://github.com/desandro/eventie.git#~1.0.3
bower cached        git://github.com/Olical/EventEmitter.git#4.3.0
bower validate      4.3.0 against git://github.com/Olical/EventEmitter.git#>=4.2 <5
bower cached        git://github.com/desandro/doc-ready.git#1.0.4
bower validate      1.0.4 against git://github.com/desandro/doc-ready.git#1.0.x
bower cached        git://github.com/desandro/get-style-property.git#1.0.4
bower validate      1.0.4 against git://github.com/desandro/get-style-property.git#~1.0.4
bower cached        git://github.com/desandro/matches-selector.git#1.0.3
bower validate      1.0.3 against git://github.com/desandro/matches-selector.git#~1.0.2
bower cached        git://github.com/metafizzy/fizzy-ui-utils.git#1.0.1
bower validate      1.0.1 against git://github.com/metafizzy/fizzy-ui-utils.git#~1.0.1
bower cached        git://github.com/desandro/get-style-property.git#1.0.4
bower validate      1.0.4 against git://github.com/desandro/get-style-property.git#1.x

Unable to find a suitable version for jquery, please choose one:
    1) jquery#~1.7.0 which resolved to 1.7.2 and is required by egjs
    2) jquery#1.11.3 which resolved to 1.11.3

Prefix the choice with ! to persist it to bower.json

? Answer 2
bower install       outlayer#1.4.2
bower install       iscroll#5.1.3
bower install       hammer.js#2.0.4
bower install       qunit#1.17.1
bower install       get-size#1.2.2
bower install       eventEmitter#4.3.0
bower install       eventie#1.0.6
bower install       jquery#1.11.3
bower install       doc-ready#1.0.4
bower install       get-style-property#1.0.4
bower install       matches-selector#1.0.3
bower install       fizzy-ui-utils#1.0.1

outlayer#1.4.2 bower_components/outlayer
├── doc-ready#1.0.4
├── eventEmitter#4.3.0
├── eventie#1.0.6
├── fizzy-ui-utils#1.0.1
├── get-size#1.2.2
├── get-style-property#1.0.4
└── matches-selector#1.0.3

iscroll#5.1.3 bower_components/iscroll

hammer.js#2.0.4 bower_components/hammer.js

qunit#1.17.1 bower_components/qunit

get-size#1.2.2 bower_components/get-size
└── get-style-property#1.0.4

eventEmitter#4.3.0 bower_components/eventEmitter

eventie#1.0.6 bower_components/eventie

jquery#1.11.3 bower_components/jquery

doc-ready#1.0.4 bower_components/doc-ready
└── eventie#1.0.6

get-style-property#1.0.4 bower_components/get-style-property

matches-selector#1.0.3 bower_components/matches-selector

fizzy-ui-utils#1.0.1 bower_components/fizzy-ui-utils
├── doc-ready#1.0.4
└── matches-selector#1.0.3