2016-07-26 2 views
0

각도 프로젝트를 시작하고 보어를 사용 중입니다.
--save를 사용하여 bower.json에 두 개의 패키지를 설치했습니다.바우어 종속성 버전 충돌

Please note that, 
    ng-token-auth#0.0.29 depends on angular#>=1.4 <=1.5.3 which resolved to angular#1.5.3 
    angular-animate#1.5.8, angular-aria#1.5.8, angular-loader#1.5.8, angular-messages#1.5.8, angular-mocks#1.5.8, angular-route#1.5.8 depends on angular#1.5.8 which resolved to angular#1.5.8 
    angular-seed depends on angular#~1.5.0 which resolved to angular#1.5.8 
    angular-material#1.0.9 depends on angular#^1.4.8 which resolved to angular#1.5.8 
    angular-cookie#4.1.0 depends on angular#* which resolved to angular#1.5.8 
Resort to using angular#>=1.4 <=1.5.3 which resolved to angular#1.5.3 
Code incompatibilities may occur. 

어떻게해야합니까 : 나는 bower update를 실행하면
나는이 얻을?
이것은 bower install ng-token-auth --save을 사용하여 ng-token-auth를 추가 한 후에 발생합니다.
나의 이해는 각도와 함께이가 해결 될 것입니다 1.5.3 내 문제에있는 경우 내가 믿는이 패키지는 각도와 협력하여 그대로

angular-animate#1.5.8, angular-aria#1.5.8, angular-loader#1.5.8, angular-messages#1.5.8, angular-mocks#1.5.8, angular-route#1.5.8 

이가, 1.5.8에서 현재는 것이다.
내 가정이 맞습니까?
모든 패키지를 제거한 다음 bower install을 제거했지만 아무런 차이가 없었습니다.

+0

간단한,'NG-토큰 auth' 1.5 이상 각도 지원하지 않는 것이다 1.5.8 강제로 시도 할 수 있습니다 .삼. 다운 그레이드하거나 1.5.8을 시도해보십시오 * 아마도 * 작동 할 것입니다 – Phil

+0

각도 1.5.3을 해상도에 추가했지만 문제는 각도 - 아리아, 각도 경로입니다. 특히 1.5.8 ... 필요합니다 그들의 의존성은 만족스럽지 않다 ... @Phil –

답변

0

단순한 ng-token-auth은 1.5.3 이상의 각도를 지원하지 않습니다. 당신은 그

"dependencies": { 
    "angular": "1.5.3", 
    "angular-animate": "1.5.3", 
    ... 
}, 
"resolutions": { 
    "angular": "1.5.3" 
} 

으로 다운 그레이드하거나 resolutions 설정을 사용하여 아마 작업

"resolutions": { 
    "angular": "1.5.8" 
} 
+0

ng-token-auth에 문제를 일으킬 수 있다고 믿는 것처럼 버전 1.5.8을 강제로 wan't하지 않는다 ... 다른 방법이 있습니까? –

+0

@SiDDevesh 위의 업데이트를 참조하십시오. – Phil

+0

고마워요! 아마 작동 할 것 같아요.하지만 '각형'패키지는 모두 같은 버전을 가져야하기 때문에 ... ng-token-auth의 요구 사항에 따라 각도 자체가 1.5.3으로 제한되는 경우 1.5.8이되는 이유는 무엇입니까? .. 의심의 여지가 .. @Phil –