【问题标题】:The remote name could not be resolved: 'api.nuget.org'无法解析远程名称:“api.nuget.org”
【发布时间】:2017-07-25 12:34:47
【问题描述】:

我在使用 Visual Studio 2017 中的包管理器控制台安装 Nuget 包时遇到问题。以下是错误的完整详细信息:

install-package : Unable to load the service index for source https://api.nuget.org/v3/index.json.
  An error occurred while sending the request.
  The remote name could not be resolved: 'api.nuget.org'
At line:1 char:1
+ install-package selenium.webdriver -version 3.0.0
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

我已经检查了每个 Nuget 服务器 here 的状态,并且所有服务器似乎都可以运行。我也发现了类似的帖子,但大多数都已经够老了。我什至尝试重置我的路由器,但还是一样。

希望有人帮助我。我已经通过电子邮件发送了他们的支持,但尚未收到回复。

【问题讨论】:

标签: nuget-package


【解决方案1】:

我前段时间遇到过这个问题,但我仍然想发布原因来帮助别人。似乎错误详细信息是正确的:

The remote name could not be resolved: 'api.nuget.org'

第二天我才发现我的互联网提供商当时遇到了问题。那天我再次尝试安装该软件包,它无需任何调整即可工作。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-09-08
    • 1970-01-01
    • 2016-05-31
    • 2013-05-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多