2017-05-23 1 views
0

(도장에 적합한 버전을 찾을 수 없습니다) : 나는 새로운 디렉토리도에 설치하려고했습니다 bower install arcgis-js-api나는 다음과 같은 명령을 실행하려고 시도 할 때 다음과 같은 오류 얻을

을 기본 bower.json 파일을 만든 후 웹 검색은 문제가있는 사람들을 발견했지만 해결 방법에 대한 게시 된 해결책은 없습니다.

{ 
    "name": "arcgis-js-api-sample-app", 
    "version": "1.0.0", 
    "license": "Apache-2.0", 
    "dependencies": { 
     "esri": "arcgis-js-api#3.15.0" 
    }, 
    "resolutions": { 
     "dojo": "v1.10.4/esri-3.14.0" 
    } 
} 

오류 메시지 : 도장에 적합한 버전을 찾을 수는 ArcGIS-JS-API를 ECONFLICT 수 없습니다 설치 이물

전체 추적 :이 문제를 재현 할 수 없었습니다

$ bower install arcgis-js-api 
bower arcgis-js-api#*   cached https://github.com/Esri/arcgis-js-api.git#4.3.1 
bower arcgis-js-api#*   validate 4.3.1 against https://github.com/Esri/arcgis-js-api.git#* 
bower dojo#v1.12.1/esri-3.20.0 cached https://github.com/Esri/dojo.git#v1.12.1/esri-3.20.0 
bower dojo#v1.12.1/esri-3.20.0   validate v1.12.1/esri-3.20.0 against https://github.com/Esri/dojo.git#v1.12.1/esri-3.20.0 
bower util#v1.12.1/esri-3.20.0   cached https://github.com/Esri/dojo-util.git#v1.12.1/esri-3.20.0 
bower util#v1.12.1/esri-3.20.0   validate v1.12.1/esri-3.20.0 against https://github.com/Esri/dojo-util.git#v1.12.1/esri-3.20.0 
bower dojox#v1.12.1/esri-3.20.0   cached https://github.com/Esri/dojox.git#v1.12.1/esri-3.20.0 
bower dojox#v1.12.1/esri-3.20.0  validate v1.12.1/esri-3.20.0 against https://github.com/Esri/dojox.git#v1.12.1/esri-3.20.0 
bower dgrid#v1.1.0/esri-3.20.0   cached https://github.com/Esri/dgrid.git#v1.1.0/esri-3.20.0 
bower dgrid#v1.1.0/esri-3.20.0   validate v1.1.0/esri-3.20.0 against https://github.com/Esri/dgrid.git#v1.1.0/esri-3.20.0 
bower dijit#v1.12.1/esri-3.20.0   cached https://github.com/Esri/dijit.git#v1.12.1/esri-3.20.0 
bower dijit#v1.12.1/esri-3.20.0  validate v1.12.1/esri-3.20.0 against https://github.com/Esri/dijit.git#v1.12.1/esri-3.20.0 
bower dstore#1.1.1      cached https://github.com/SitePen/dstore.git#1.1.1 
bower dstore#1.1.1      validate 1.1.1 against https://github.com/SitePen/dstore.git#1.1.1 
bower moment#2.17.1      cached https://github.com/moment/moment.git#2.17.1 
bower moment#2.17.1     validate 2.17.1 against https://github.com/moment/moment.git#2.17.1 
bower dojo#>=1.8.9      cached https://github.com/dojo/dojo.git#1.12.2 
bower dojo#>=1.8.9      validate 1.12.2 against https://github.com/dojo/dojo.git#>=1.8.9 
bower dijit#1.12.1      cached https://github.com/dojo/dijit.git#1.12.1 
bower dijit#1.12.1      validate 1.12.1 against https://github.com/dojo/dijit.git#1.12.1 
bower dojox#1.12.1      cached https://github.com/dojo/dojox.git#1.12.1 
bower dojox#1.12.1      validate 1.12.1 against https://github.com/dojo/dojox.git#1.12.1 
bower dojo-themes#1.12.1     cached https://github.com/dojo/themes.git#1.12.1 
bower dojo-themes#1.12.1    validate 1.12.1 against https://github.com/dojo/themes.git#1.12.1 
bower dojo#>=1.8.1      cached https://github.com/dojo/dojo.git#1.12.2 
bower dojo#>=1.8.1      validate 1.12.2 against https://github.com/dojo/dojo.git#>=1.8.1 
bower dojo#1.12.1      cached https://github.com/dojo/dojo.git#1.12.1 
bower dojo#1.12.1      validate 1.12.1 against https://github.com/dojo/dojo.git#1.12.1 
bower         ECONFLICT Unable to find suitable version for dojo 

답변

1

해결책을 찾았습니다. 이것은 gitBash 인터페이스를 사용할 때 windows 컴퓨터에서 문제가되는 것 같습니다. gitBash는 사용자 상호 작용이 특정 버전의 종속성을 선택하라는 메시지에 응답하는 것을 허용하지 않고 오류 메시지 만 표시합니다.

gitBash 대신 gitCMD 프롬프트를 사용하도록 전환했습니다. gitCMD로 전환하고 동일한 bower install arcgis-js-api 명령을 실행하면 종속성 선택에 관한 질문이 나타 났으며 성공적으로 선택하고 설치를 완료 할 수있었습니다.

Windows에서 bower를 사용하는 다른 사용자에게 도움이되기를 바랍니다.

0

. 만약 내가 단지 bower install arcgis-js-api하면 내 결심을 선택할 수있는 옵션이 주어집니다. 게시 한 bower.json을 사용하면 경고가 표시되지만 오류는 발생하지 않습니다. 괜찮

Please note that, esri#3.15.0 depends on dojo#v1.10.4/esri-3.14.0 which resolved to dojo#v1.10.4/esri-3.14.0 dstore#1.1.0 depends on dojo#>=1.8.1 which resolved to dojo#1.12.2 Resort to using dojo#v1.10.4/esri-3.14.0 which resolved to dojo#v1.10.4/esri-3.14.0 Code incompatibilities may occur.

, 그냥 정자가 안전하게 플레이 할 수있는 경고를주고있다.

bower cache clean을 사용해 보셨습니까?

+0

응답 해 주셔서 감사합니다. 깨끗한 캐시를 시도하지는 않았지만 별도의 문제 였고 방금 게시 한 솔루션을 찾을 수있었습니다. – pureblur

관련 문제