日々精進

新しく学んだことを書き留めていきます

bower

bower installを実行すると「install fails with ECONNRESET」エラー

原因はプロキシの設定が出来ていないこと。 bowerはhttp_proxy環境変数などを読んでくれないっぽい。 .bowerrcをHOMEに置く必要がある。内容は以下のようにする。 { "directory": "library", "registry": "http://bower.herokuapp.com", "proxy":"http://<USERNAME>:<PASSWORD>@<PROXY_IP>:<PROXY_PORT></proxy_port></proxy_ip></password></username>…