4

bower のインストールで問題に直面しています。

bower ECMDERR 「git ls-remote --tags --heads HTTPS_LINK to bower-angular-mocks.git」の実行に失敗しました。#128 の終了コード

Git / Bower Errors: Exit Code # 128 & Failed connectに記載されている提案に従いました。GIT と Bower の両方に推奨されるプロキシ設定を行いました。

.bowerrc

"proxy" : "PROXY_URL",
"https-proxy" : "PROXY_URL"

ギット

http.proxy=PROXY_URL
git config --global url."https://".insteadOf git:// [GIT config to use HTTPS in place of GIT]

ここに私の完全なエラーログがあります:

bower not-cached    HTTPS_LINK to bower-angular.git#1.2.x
bower resolve       HTTPS_LINK to bower-angular.git#1.2.x
bower not-cached    HTTPS_LINK to bower-angular-loader.git#1.2.x
bower resolve       HTTPS_LINK to bower-angular-loader.git#1.2.x
bower not-cached    HTTPS_LINK to bower-angular-route.git#1.2.x
bower resolve       HTTPS_LINK to bower-angular-route.git#1.2.x
bower not-cached    HTTPS_LINK to html5-boilerplate.git#~4.3.0
bower resolve       HTTPS_LINK to html5-boilerplate.git#~4.3.0
bower not-cached    HTTPS_LINK to bower-angular-mocks.git#~1.2.x
bower resolve       HTTPS_LINK to bower-angular-mocks.git#~1.2.x
bower ECMDERR       Failed to execute "git ls-remote --tags --heads https://gith
ub.com/angular/bower-angular-mocks.git", exit code of #128

Additional error details:
fatal: unable to access '**https://**github.com/angular/bower-angular-mocks.git/': F
ailed connect to github.com:443; No error

ログから、bower が GIT ではなく HTTPS を使用していることがわかります。もう 1 つの更新は、GIT で失敗したコマンドを実行できることです。

git ls-remote --tags --heads HTTPS_LINK
4

4 に答える 4

8

bowerがangular-animateを取得できなかった同様の問題がありました。実行することでこの問題を解決できました

git config --global url."https://".insteadOf "git://"

アプリ プロジェクト フォルダーに移動して実行し、問題が解決するかどうかを確認してください。

于 2015-02-03T18:54:22.827 に答える
4

プロジェクト ディレクトリに git リポジトリを作成するための新しいプロジェクト タイプ git init の場合は、これを試してください。

git config --local url."https://".insteadOf "git://"

この構成はローカル プロジェクトにのみ影響します

次に、bower コマンドを試します

グローバルなソリューションが必要な場合は、これを試してください

git config --global url."https://".insteadOf git://

この URL の詳細な説明: http://jgoodall.me/posts/2013/05/29/git-use-https/

于 2015-02-22T17:01:50.423 に答える
2

この問題があり、 C:\user\AppData\Roaming\bower\cache を削除すると解決します

于 2015-04-14T15:10:16.703 に答える
1

git bash で「bower install」を実行し、C:\Users\\AppData\Local\bower をクリーニングして、「git config --global url.」https://".insteadOf git://" を実行し、次に「bower cache」を実行します。掃除"。最後に、すべて Giy Bash で「bower install」します。

于 2016-06-13T09:09:59.113 に答える