1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Running Swagger-editor behind a corporate proxy

Last updated at Posted at 2015-12-22

経緯

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
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?