简体   繁体   English

角路由凉亭下载问题

[英]Angular-route bower download issue

I have problem downloading angular-route through bower.json file.我在通过 bower.json 文件下载 angular-route 时遇到问题。 From what I see, today it (angular-route) got updated to version 1.5.4, yet downloading either 1.5.3 or 1.5.4 throws an error for me.据我所知,今天它(angular-route)更新到了 1.5.4 版,但下载 1.5.3 或 1.5.4 对我来说会引发错误。

PATH=.\\node_modules.bin;C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Web Tools\\External;%PATH%;C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Web Tools\\External\\git "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Web Tools\\External\\Bower.cmd" install --force-latest PATH=.\\node_modules.bin;C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Web Tools\\External;%PATH%;C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Web Tools\\External\\git "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Web Tools\\External\\Bower.cmd"安装--force-最新

bower angular-route#~1.5.3 not-cached https://github.com/angular/bower-angular-route.git#~1.5.3 bower angular-route#~1.5.3 未缓存https://github.com/angular/bower-angular-route.git#~1.5.3

bower angular-route#~1.5.3 resolve https://github.com/angular/bower-angular-route.git#~1.5.3 bower angular-route#~1.5.3 解析https://github.com/angular/bower-angular-route.git#~1.5.3

bower angular-route#~1.5.3 checkout v1.5.3 bower angular-route#~1.5.3 checkout v1.5.3

bower angular-route#~1.5.3 ECMDERR Failed to execute "git clone https://github.com/angular/bower-angular-route.git -b v1.5.3 --progress . --depth 1", exit code of #-532462766 bower angular-route#~1.5.3 ECMDERR 无法执行“git clone https://github.com/angular/bower-angular-route.git -b v1.5.3 --progress . --depth 1”,退出代码#-532462766

I have tried downloading it using:我尝试使用以下方法下载它:

"angular-route": "*" “角度路线”:“*”

"angular-route": "~1.5.3" “角度路线”:“~1.5.3”

"angular-route": "~1.5.4" “角度路线”:“~1.5.4”

but i always get the same ECMDERR error.但我总是收到相同的 ECMDERR 错误。 I have tried creating new project just to test if it works there but I get same results.我尝试创建新项目只是为了测试它是否在那里工作,但我得到了相同的结果。 I did not have problems downloading "angular" or any other packages.我在下载“angular”或任何其他软件包时没有遇到问题。

It is a bug in the release process of AngularJS: https://github.com/angular/angular.js/issues/14434是AngularJS发布过程中的一个bug: https : //github.com/angular/angular.js/issues/14434

More precisely, there was an issue with the release and not all modules have benn published.更准确地说,发行版存在问题,并非所有模块都已发布。

So in the bower.json file as another dependency I wrote:所以在作为另一个依赖的 bower.json 文件中,我写道:

"angular-route": "git://github.com/angular/bower-angular-route.git"

and it worked.它奏效了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM