为什么我不能将角度1.2.23升级到1.3.2
C:\ MyTestProject> bower更新angular --save --latest
在我的终端?
然后我得到这个消息:
bower angular#>= 1.0.8 cached git://github.com/angular/bower-angular.git#1.3.2
bower angular#>= 1.0.8 validate 1.3.2 against git://github.com/angular/bower-angular.git#>= 1.0.8
bower angular#1.2.23 cached git://github.com/angular/bower-angular.git#1.2.23
bower angular#1.2.23 validate 1.2.23 against git://github.com/angular/bower-angular.git#1.2.23
bower angular#>=1 cached git://github.com/angular/bower-angular.git#1.3.2
bower angular#>=1 validate 1.3.2 against git://github.com/angular/bower-angular.git#>=1
bower angular#1.2.26 cached git://github.com/angular/bower-angular.git#1.2.26
bower angular#1.2.26 validate 1.2.26 against git://github.com/angular/bower-angular.git#1.2.26
bower angular#>=1.0.0 <1.4.0 cached git://github.com/angular/bower-angular.git#1.3.2
bower angular#>=1.0.0 <1.4.0 validate 1.3.2 against git://github.com/angular/bower-angular.git#>=1.0.0 <1.4.0
Please note that,
MyTestProject depends on angular#1.2.23 which resolved to angular#1.2.23
angular-mocks#1.2.26 depends on angular#1.2.26 which resolved to angular#1.2.26
angular-ui-router#0.2.12 depends on angular#>= 1.0.8 which resolved to angular#1.3.2
angular-bootstrap#0.11.2 depends on angular#>=1 which resolved to angular#1.3.2
angular-moment#0.8.2 depends on angular#>=1.0.0 <1.4.0 which resolved to angular#1.3.2
Resort to using angular#1.2.23 which resolved to angular#1.2.23
Code incompatibilities may occur.
问题是角mo吗?
更新
{
"name": "angular-mocks",
"version": "",
"description": "AngularJS mocks for testing",
"main": "angular-mocks.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/angular/angular.js.git"
},
"keywords": [
"angular",
"framework",
"browser",
"mocks",
"testing",
"client-side"
],
"author": "Angular Core Team <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/angular/angular.js/issues"
},
"homepage": "http://angularjs.org"
}
.bower.json
{
"name": "angular-mocks",
"version": "1.2.26",
"main": "./angular-mocks.js",
"dependencies": {
"angular": "1.2.26"
},
"homepage": "https://github.com/angular/bower-angular-mocks",
"_release": "1.2.26",
"_resolution": {
"type": "version",
"tag": "v1.2.26",
"commit": "0eda339dd42aba2628586f39d4806bcfb57fd6f4"
},
"_source": "git://github.com/angular/bower-angular-mocks.git",
"_target": "~1.2.23",
"_originalSource": "angular-mocks"
}
最佳答案
您可能已将angular-mocks
锁定在一个特定的版本范围内,该版本范围不允许Bower将其升级到1.3.2(需要确认您的bower.json
才能确定)。当您将Core Angle核心升级到新版本时,请确保您还匹配所有其他依赖于您主angular
软件包的其他Angle核心软件包的版本规则,即它们需要同步:
# in bower.json
"devependencies": {
angular: ^1.3.2
... ... ...
},
"devDependencies": {
angular-mocks: ^1.3.2
... ... ...
}
更新
package.json
后,运行bower update
以更新本地软件包。Angular 1.3核心软件包的示例包括:
angular-mocks.js
angular-scenario.js
angular-animate.js
angular-cookies.js
angular-resource.js
angular-route.js
angular-sanitize.js
angular-touch.js
关于angularjs - Bower让我不要升级到angularjs 1.3.2,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/26940543/