Can't install Bower packages in Asp.Net Core

时间:2016-08-31 12:21:24

标签: c# jquery-ui asp.net-core bower

I have Visual Studio 2015 with Update 3. I have created new Asp.Net Core Web Application (.NET Core). Then, when I'm trying to install jquery-ui with the help of Bower, I get following error:

ECONNREFUSED Request to https://bower.herokuapp.com/packages/jquery-ui failed: connect ECONNREFUSED 23.23.73.170:443

How can I install it, what should I do with this error?

1 个答案:

答案 0 :(得分:3)

错误消息指出nuget无法打开与https://bower.herokuapp.com/packages/jquery-ui的连接。您可以尝试在浏览器中打开此URL。在Chrome中,将返回此JSON响应:

{
    "name": "jquery-ui",
    "url": "https://github.com/components/jqueryui.git"
}

可能这是有效的,因为您的浏览器中的代理配置已经设置。

请在您的计算机上检查并设置nuget的代理设置: https://docs.nuget.org/consume/nuget-config-settings#proxy-settings