Visual Studio 2015 IDEを使用して開発されたCordovaアプリケーションがあります。ライブラリと依存関係を管理するために、NuGetを使ってみました。しかし、NuGetはクライアント側のスクリプト、つまりCSSを管理できないようです。そこで私はBOWERを調べました。コマンドnpm installl -g bower
を使用してバワーをインストールしましたが、今度はすべてのバワーコマンドにアクセスできます。Bowerパッケージをインストールできない
jQueryやjQuery Mobileなどの依存関係を追加しようとすると、フェッチが試行されて失敗します。それが与えるエラーで、
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 retry Request to https://bower.herokuapp.com/packages/jquery-mobile failed with ECONNRESET, retrying in 1.5s
bower retry Request to https://bower.herokuapp.com/packages/jQuery failed with ECONNRESET, retrying in 1.4s
bower retry Request to https://bower.herokuapp.com/packages/jQuery failed with ECONNRESET, retrying in 3.0s
bower retry Request to https://bower.herokuapp.com/packages/jquery-mobile failed with ECONNRESET, retrying in 3.1s
bower retry Request to https://bower.herokuapp.com/packages/jQuery failed with ECONNRESET, retrying in 4.8s
bower retry Request to https://bower.herokuapp.com/packages/jquery-mobile failed with ECONNRESET, retrying in 7.0s
bower retry Request to https://bower.herokuapp.com/packages/jQuery failed with ECONNRESET, retrying in 9.7s
bower retry Request to https://bower.herokuapp.com/packages/jquery-mobile failed with ECONNRESET, retrying in 8.5s
bower retry Request to https://bower.herokuapp.com/packages/jQuery failed with ECONNRESET, retrying in 26.5s
bower retry Request to https://bower.herokuapp.com/packages/jquery-mobile failed with ECONNRESET, retrying in 25.6s
bower jQuery#* ECONNRESET Request to https://bower.herokuapp.com/packages/jQuery failed: tunneling socket could not be established, cause=connect ETIMEDOUT
====Executing command 'npm install'====
npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
====npm command completed with exit code 0====
は私が閲覧し、私が、のような
http_proxy = http://<user>:<password>@<your company proxy>:<port>
https_proxy= http://<user>:<password>@<your company proxy>:<port>
または.bowerrcという名前のファイルを作成し、プロキシを克服するためのコードを配置し、プロキシを設定する必要があると言われています。
{
"directory": "library",
"registry": "http://bower.herokuapp.com",
"proxy":"http://<USERNAME>:<PASSWORD>@<PROXY_IP>:<PROXY_PORT>/",
"https-proxy":"http://<USERNAME>:<PASSWORD>@<PROXY_IP>:<PROXY_PORT>/"
}
しかし、何も機能しませんでした。今私はプロキシなしのオープンネットワークで試した、私は同じエラーが発生しています。基本的なステップがありませんか?
私もコマンドプロンプトウィンドウから試しました。同じエラーが発生しました。ご支援のための
git config --global url."git://".insteadOf https://
ブラウザでhttps://bower.herokuapp.com/packagesにアクセスできますか? – Shuping
はい、私はブラウザから同じものにアクセスできます。 URL ** https://bower.herokuapp.com/packages/jQuery**は私に応答 '{" name ":" jQuery "、" url ":" git://github.com/jquery/jquery "を与えました。 git "、" hits ":47370}' – Joseph
NodeJs、Cordova、Bowerを再インストールしようとしました。しかし、それを正しくすることはできませんでした。誰でも問題を解決するのに役立つアイデアを共有できますか?多くのスレッドとブログを試しましたが運はありませんでした。 – Joseph