{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/vcpkg/issues/2673","repository_url":"https://api.github.com/repos/Microsoft/vcpkg","labels_url":"https://api.github.com/repos/Microsoft/vcpkg/issues/2673/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vcpkg/issues/2673/comments","events_url":"https://api.github.com/repos/Microsoft/vcpkg/issues/2673/events","html_url":"https://github.com/Microsoft/vcpkg/issues/2673","id":292207841,"number":2673,"title":"安装不上vcpkg","user":{"login":"njuxdj","id":3055781,"avatar_url":"https://avatars2.githubusercontent.com/u/3055781?v=4","gravatar_id":"","url":"https://api.github.com/users/njuxdj","html_url":"https://github.com/njuxdj","followers_url":"https://api.github.com/users/njuxdj/followers","following_url":"https://api.github.com/users/njuxdj/following{/other_user}","gists_url":"https://api.github.com/users/njuxdj/gists{/gist_id}","starred_url":"https://api.github.com/users/njuxdj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/njuxdj/subscriptions","organizations_url":"https://api.github.com/users/njuxdj/orgs","repos_url":"https://api.github.com/users/njuxdj/repos","events_url":"https://api.github.com/users/njuxdj/events{/privacy}","received_events_url":"https://api.github.com/users/njuxdj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-01-28T14:17:12Z","updated_at":"2018-02-06T02:05:39Z","closed_at":"2018-02-06T02:05:39Z","author_association":"NONE","body":"操作系统：win10，按照文档clone到本地后，执行bootstrap-vcpkg.bat报错，错误信息如下：\r\nPS D:\\vcpkg> .\\bootstrap-vcpkg.bat\r\nDownloading vswhere...\r\n使用“2”个参数调用“DownloadFile”时发生异常:“无法连接到远程服务器”\r\n所在位置 D:\\vcpkg\\scripts\\VcpkgPowershellUtils.ps1:116 字符: 5\r\n+     $wc.DownloadFile($url, $downloadPartPath)\r\n+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException\r\n    + FullyQualifiedErrorId : WebException\r\n\r\nMove-Item : 找不到路径“D:\\vcpkg\\downloads\\vswhere-2.3.2\\vswhere.exe.part”，因为该路径不存在。\r\n所在位置 D:\\vcpkg\\scripts\\VcpkgPowershellUtils.ps1:117 字符: 5\r\n+     Move-Item -Path $downloadPartPath -Destination $downloadPath\r\n+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : ObjectNotFound: (D:\\vcpkg\\downlo...swhere.exe.part:String) [Move-Item], ItemNotFoundExce\r\n   ption\r\n    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.MoveItemCommand\r\n\r\nDownloading vswhere has completed successfully.\r\nResolve-Path : 找不到路径“D:\\vcpkg\\downloads\\vswhere-2.3.2\\vswhere.exe”，因为该路径不存在。\r\n所在位置 C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\Microsoft.PowerShell.Utility\\Microsoft.PowerShell.Utility.p\r\nsm1:110 字符: 36\r\n+                 $pathsToProcess += Resolve-Path $Path | Foreach-Objec ...\r\n+                                    ~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : ObjectNotFound: (D:\\vcpkg\\downlo...3.2\\vswhere.exe:String) [Resolve-Path], ItemNotFoundE\r\n   xception\r\n    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.ResolvePathCommand\r\n\r\n不能对 Null 值表达式调用方法。\r\n所在位置 D:\\vcpkg\\scripts\\VcpkgPowershellUtils.ps1:80 字符: 12\r\n+     return $hash.ToLower()\r\n+            ~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : InvalidOperation: (:) []，RuntimeException\r\n    + FullyQualifiedErrorId : InvokeMethodOnNull\r\n\r\nvcpkgCheckEqualFileHash : 无法将参数绑定到参数“actualHash”，因为该参数为空字符串。\r\n所在位置 D:\\vcpkg\\scripts\\fetchDependency.ps1:86 字符: 107\r\n+ ... ectedHash $expectedDownloadedFileHash -actualHash $downloadedFileHash\r\n+                                                       ~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : InvalidData: (:) [vcpkgCheckEqualFileHash]，ParameterBindingValidationException\r\n    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,vcpkgCheckEqualFileHash\r\n\r\nCould not detect or download vswhere\r\n所在位置 D:\\vcpkg\\scripts\\fetchDependency.ps1:116 字符: 9\r\n+         throw (\"Could not detect or download \" + $Dependency)\r\n+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : OperationStopped: (Could not detect or download vswhere:String) [], RuntimeException\r\n    + FullyQualifiedErrorId : Could not detect or download vswhere\r\n\r\nPS D:\\vcpkg>\r\n\r\n\r\n"}}
{"actor":{"display_login":"ras0219-msft"}}