Estoy usando Visual Studio 2015 y obtengo un error al intentar utilizar Bower para instalar recursos.
Aquí está mi bower.json:
{
"name": "ASP.NET",
"private": true,
"dependencies": {
"angular": "1.4.5",
"angular-resource": "1.4.5",
"angular-route": "1.4.5",
"jQuery": "2.1.4",
"bootstrap": "3.3.5"
}
}
Aquí está mi salida con el error:
bower angular#1.4.5 not-cached https://github.com/angular/bower-angular.git#1.4.5
bower angular#1.4.5 resolve https://github.com/angular/bower-angular.git#1.4.5
bower angular-resource#1.4.5 not-cached https://github.com/angular/bower-angular-resource.git#1.4.5
bower angular-resource#1.4.5 resolve https://github.com/angular/bower-angular-resource.git#1.4.5
bower angular-route#1.4.5 not-cached https://github.com/angular/bower-angular-route.git#1.4.5
bower angular-route#1.4.5 resolve https://github.com/angular/bower-angular-route.git#1.4.5
bower bootstrap#3.3.5 not-cached https://github.com/twbs/bootstrap.git#3.3.5
bower bootstrap#3.3.5 resolve https://github.com/twbs/bootstrap.git#3.3.5
bower angular-resource#1.4.5 checkout v1.4.5
bower angular#1.4.5 checkout v1.4.5
bower angular-route#1.4.5 checkout v1.4.5
bower bootstrap#3.3.5 checkout v3.3.5
bower angular-resource#1.4.5 ECMDERR Failed to execute "git clone https://github.com/angular/bower-angular-resource.git -b v1.4.5 --progress . --depth 1", exit code of #-532462766
El directorio para Bower está configurado para serwwwroot / lib. Me dijeron que Visual Studio tenía un error donde diría que Bower no instaló los recursos, pero en realidad lo hizo, pero no veo los recursos en la carpeta wwwroot / lib como deberían, dejándome creer que no es el mismo error.
Respuestas
0 para la respuesta № 1Así lo resolví:
- Instalar Git independiente de http://git-scm.com/
Abierto bash y ejecutar para usar https en lugar de git (firewall tal vez bloqueando el protocolo de git):
git config --global url.https://github.com/.insteadOf git://github.com/
ahora sólo Configurar Visual Studio para usar esta nueva herramienta git en su lugar:
añadir la ultima linea y desmarque La antigua línea de comando git.
espero que esto ayude