0

我在我的項目中使用Angular 1.4.x。我需要使用UI-bootstrap。但我在文檔中看到:Angular JS 1.4.x的角度UI引導

•AngularJS(需要使用1.3.3版測試的AngularJS 1.3.x)。 0.12.0是支持AngularJS 1.2.x的這個庫的最後一個版本。

這是否意味着我需要將我的Angular版本降級到1.3.x?或者有沒有辦法解決這個問題?

bower.json:

{ 
    "name": "boiler", 
    "description": "Boiler automation", 
    "version": "0.0.1", 
    "homepage": "", 
    "license": "", 
    "private": true, 
    "dependencies": { 
    "angular": "~1.4.x", 
    "angular-mocks": "1.4.x", 
    "jquery": "~2.1.1", 
    "bootstrap": "~3.1.1", 
    "angular-route": "1.4.x", 
    "angular-ui-router": "~0.2.15", 
    "angular-bootstrap": "~0.13.0", 
    "angular-animate": "~1.4.x" 
    } 
} 

獲取以下錯誤的涼亭安裝:

bower cached  git://github.com/angular-ui/bootstrap-bower.git#0.13.0 
bower validate  0.13.0 against git://github.com/angular-ui/bootstrap-bower.g 
it#~0.13.0 
bower cached  git://github.com/angular/bower-angular.git#1.4.2 
bower validate  1.4.2 against git://github.com/angular/bower-angular.git#~1. 
4.x 
bower cached  git://github.com/angular/bower-angular.git#1.4.2 
bower validate  1.4.2 against git://github.com/angular/bower-angular.git#>= 
1.0.8 
bower cached  git://github.com/angular/bower-angular.git#1.4.1 
bower validate  1.4.1 against git://github.com/angular/bower-angular.git#1.4 
.1 
bower cached  git://github.com/angular/bower-angular-animate.git#1.4.2 
bower validate  1.4.2 against git://github.com/angular/bower-angular-animate 
.git#~1.4.x 
bower cached  git://github.com/angular/bower-angular.git#1.4.2 
bower validate  1.4.2 against git://github.com/angular/bower-angular.git#1.4 
.2 
bower ECONFLICT  Unable to find suitable version for angular 

npm ERR! Windows_NT 6.1.7601 
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs 
\\node_modules\\npm\\bin\\npm-cli.js" "install" 
npm ERR! node v0.12.2 
npm ERR! npm v2.7.4 
npm ERR! code ELIFECYCLE 
npm ERR! [email protected] postinstall: `bower install` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script 'bower install'. 
npm ERR! This is most likely a problem with the boiler package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  bower install 
npm ERR! You can get their info via: 
npm ERR!  npm owner ls boiler 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  C:\Users\sreehari.puliyakkot\projects\boiler\npm-debug.log 
+0

在我的bower配置中,您可以看到angular-animate依賴於角度1.4.x,而角度-bootstrap需要角1.3.x.如何解決這個衝突? – sreehari

回答