2016-04-16 29 views
0

リソースをインストールするためにbowerを使用しようとすると、Visual Studio 2015を使用してエラーが発生します。Visual Studio 2015にリソースがインストールされていません

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 

バウアーのためのディレクトリは、/ libにwwwrootにする設定がある:ここではエラーと私の出力は

{ 
    "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" 
    } 
} 

です:

は、ここに私のbower.jsonです。 Visual StudioにはBowerがリソースをインストールしていないと言われるバグがあると言われましたが、実際にはwwwroot/libフォルダのリソースは表示されませんでしたので、これは同じバグではないと私に任せています。

答えて

0

これは私がそれを解決する方法である:

  • http://git-scm.com/
  • オープンのbashとgitの(多分gitのプロトコルをブロックするファイアウォール)上の代わりにhttpsを使用するを実行してからスタンドアロンのGitをインストールします。

    git config --global url.https://github.com/.insteadOf git://github.com/

  • は今ちょうど設定 Visual Studioのではなく、この新しいgitのツールを使用します

    enter image description here はチェックを外し古いのgitコマンドライン最後の行とを追加します。

が、これは

を役に立てば幸い
関連する問題