経緯
swagger editorを社内サーバで起動しようとしたら、社内Proxyのせいで bower installが失敗。
エラーログ
$ cd ~/swagger-editor
$ npm start
...省略...
bower ECONNRESET Request to https://bower.herokuapp.com/packages/search/jquery failed: tunneling socket could not be established, cause=Parse Error
~/swagger-editor/.bowerrcを修正
修正前
{
"directory": "app/bower_components"
}
修正後
{
"directory": "app/bower_components",
"registry": "http://bower.herokuapp.com",
"proxy":"http://username:password@host:port",
"https-proxy":"http://username:password@host:port"
}
npm startを再実行
$ cd ~/swagger-editor
$ npm start
...省略...
Running "connect:dist:keepalive" (connect) task
Waiting forever...
Started connect web server on http://localhost:8080