/ / Visual Studio 2015にリソースをインストールしないでください - visual-studio-2015、bower

Visual Studio 2015にリソースをインストールしないでください - visual-studio-2015、bower

Visual Studio 2015を使用しており、リソースをインストールするために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"
}
}

私の出力にはエラーがあります:

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

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

回答:

回答№1は0

これは私がそれを解決した方法です:

  • インストール スタンドアロンのGitの http://git-scm.com/
  • 開いた bashと 実行する 代わりにgitでhttpsを使用する(ファイアウォールはgitプロトコルをブロックするかもしれない):

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

  • 今だけ 設定 代わりにこの新しいgitツールを使用するVisualスタジオ:

    ここに画像の説明を入力 追加する 最後の行と チェックしない 古いgitコマンドライン。

お役に立てれば