Bower calls blocked by corporate proxy

前端 未结 16 1240
夕颜
夕颜 2020-11-30 20:00

I\'m trying to use Bower for a web app, but find myself hitting some sort of proxy issues:

D:\\>bower search jquery
bower retry         Request to https:/         


        
16条回答
  •  旧巷少年郎
    2020-11-30 20:50

    In addition to setting the below proxy in .bowerrc:

    {
      "directory": "app/bower_components",
      "proxy":"http://:@proxy.company.com:",
      "https-proxy":"http://:@proxy.company.com:",
      "http-proxy":"http://:@proxy.company.com:",
      "strict-ssl": false,
      "registry": "http://bower.herokuapp.com"
    }
    

    I am required to run the following commands to fix the issue:

    npm cache clean
    bower cache clean
    bower install
    

提交回复
热议问题