anglejs – 为什么不更新角度升级我的角度?

前端之家收集整理的这篇文章主要介绍了anglejs – 为什么不更新角度升级我的角度?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有角度1.2.3,我想升级到1.2.7
> cat bower.json
...
  "dependencies": {
    "json3": "~3.2.4","jquery": "~1.9.1","es5-shim": "~2.0.8","toastr": "~2.0.1","angular-ui-tinymce": "latest","underscore": "~1.5.2","underscore.string": "~2.3.3","angular-ui-utils": "~0.0.4","angular-dragdrop": "~1.0.5","angular-cookies": "~1.2.3","angular-animate": "~1.2.3","angular-resource": "~1.2.3","angular": "~1.2.3"
  },"devDependencies": {
    "angular-mocks": "~1.2.3","bootstrap": "~3.0.1","font-awesome": "~4.0.3","angular-bootstrap-affix": "~0.3.0"
  }
...

我不知道以下输出甚至意味着什么….它在做什么?

> bower update angular
bower angular#~1.x              cached git://github.com/angular/bower-angular.git#1.2.7
bower angular#~1.x            validate 1.2.7 against git://github.com/angular/bower-angular.git#~1.x
bower angular#>= 1.0.2          cached git://github.com/angular/bower-angular.git#1.2.7
bower angular#>= 1.0.2        validate 1.2.7 against git://github.com/angular/bower-angular.git#>= 1.0.2
bower angular#1.2.3             cached git://github.com/angular/bower-angular.git#1.2.3
bower angular#1.2.3           validate 1.2.3 against git://github.com/angular/bower-angular.git#1.2.3
bower angular#~1.2.3            cached git://github.com/angular/bower-angular.git#1.2.7
bower angular#~1.2.3          validate 1.2.7 against git://github.com/angular/bower-angular.git#~1.2.3
bower angular#~1.x                 new version for git://github.com/angular/bower-angular.git#~1.x
bower angular#~1.x             resolve git://github.com/angular/bower-angular.git#~1.x
bower angular#>= 1.0.2             new version for git://github.com/angular/bower-angular.git#>= 1.0.2
bower angular#>= 1.0.2         resolve git://github.com/angular/bower-angular.git#>= 1.0.2
bower angular#~1.2.3               new version for git://github.com/angular/bower-angular.git#~1.2.3
bower angular#~1.2.3           resolve git://github.com/angular/bower-angular.git#~1.2.3
bower angular#~1.x            download https://github.com/angular/bower-angular/archive/v1.2.8-build.2095+sha.28fc80b.tar.gz
bower angular#>= 1.0.2        download https://github.com/angular/bower-angular/archive/v1.2.8-build.2095+sha.28fc80b.tar.gz
bower angular#~1.2.3          download https://github.com/angular/bower-angular/archive/v1.2.8-build.2095+sha.28fc80b.tar.gz
bower angular#>= 1.0.2         extract archive.tar.gz
bower angular#>= 1.0.2        resolved git://github.com/angular/bower-angular.git#1.2.8-build.2095+sha.28fc80b
bower angular#~1.x             extract archive.tar.gz
bower angular#~1.x            resolved git://github.com/angular/bower-angular.git#1.2.8-build.2095+sha.28fc80b
bower angular#~1.2.3           extract archive.tar.gz
bower angular#~1.2.3          resolved git://github.com/angular/bower-angular.git#1.2.8-build.2095+sha.28fc80b

没有改变?我还在1.2.3

> git diff
diff --git a/ngapp/app/bower_components/angular/.bower.json b/ngapp/app/bower_components/angular/.bower.json
index dc9d0b6..842a1f3 100644
--- a/ngapp/app/bower_components/angular/.bower.json
+++ b/ngapp/app/bower_components/angular/.bower.json
@@ -11,6 +11,6 @@
     "commit": "b112b099971f4cf016023bdeb00b267e9bf6dfb5"
   },"_source": "git://github.com/angular/bower-angular.git",-  "_target": "~1.2.3",+  "_target": "1.2.3","_originalSource": "angular"
 }

> bower --version
1.2.8

我错过了什么吗?

> bower info angular
.... shows all versions including 1.2.7 and 1.2.8-builds as well
我认为你的依赖是阻止你孤立地更新角度.例如,看看bower_components / angular-route / bower.json.你会看到一个特定版本的角色列为依赖(“1.2.3”),而不是〜/“合理关闭”说明符“(”〜1.2.3“),所以你试图更新只是有角度,但是最远的是,您可以承担您的角度是当前版本,因为您有其他软件包依赖于该版本.

如果您进行更新,那么bower将有机会更新您的所有软件包,包括角度路由和其他保持角度的软件包.这些软件包的更新现在将允许bower在满足依赖性的同时更新角度.此外,我认为如果您根据特定的角度版本识别所有这些软件包(您可以看到与bower列表的依赖关系),并将其作为参数传递,如bower update angle angle-mocks angle-resource angular-route angular-sanitize … then凉亭也可以执行更新.

原文链接:https://www.f2er.com/angularjs/142956.html

猜你在找的Angularjs相关文章