我在通过 Bower.json 文件下载 Angular-route 时遇到问题。据我所知,今天它( Angular 路线)已更新到版本 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
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 resolve 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 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
我尝试使用以下方式下载它:
"angular-route": "*"
"angular-route": "~1.5.3"
"angular-route": "~1.5.4"
但我总是遇到相同的 ECMDERR 错误。我尝试创建新项目只是为了测试它是否在那里工作,但我得到了相同的结果。我下载“Angular”或任何其他包时没有遇到问题。
最佳答案
这是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.
关于javascript - Angular-route Bower 下载问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36483139/