{"action":"created","issue":{"url":"https://api.github.com/repos/appveyor/ci/issues/1226","repository_url":"https://api.github.com/repos/appveyor/ci","labels_url":"https://api.github.com/repos/appveyor/ci/issues/1226/labels{/name}","comments_url":"https://api.github.com/repos/appveyor/ci/issues/1226/comments","events_url":"https://api.github.com/repos/appveyor/ci/issues/1226/events","html_url":"https://github.com/appveyor/ci/issues/1226","id":196312441,"number":1226,"title":"NuGet provider is required to interact with NuGet-based repositories.","user":{"login":"Paebbels","id":956109,"avatar_url":"https://avatars.githubusercontent.com/u/956109?v=3","gravatar_id":"","url":"https://api.github.com/users/Paebbels","html_url":"https://github.com/Paebbels","followers_url":"https://api.github.com/users/Paebbels/followers","following_url":"https://api.github.com/users/Paebbels/following{/other_user}","gists_url":"https://api.github.com/users/Paebbels/gists{/gist_id}","starred_url":"https://api.github.com/users/Paebbels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Paebbels/subscriptions","organizations_url":"https://api.github.com/users/Paebbels/orgs","repos_url":"https://api.github.com/users/Paebbels/repos","events_url":"https://api.github.com/users/Paebbels/events{/privacy}","received_events_url":"https://api.github.com/users/Paebbels/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-19T01:08:01Z","updated_at":"2016-12-19T03:37:56Z","closed_at":null,"body":"I get the error message: \"NuGet provider is required to interact with NuGet-based repositories. Please ensure that '2.8.5.201' or newer version of NuGet provider is installed.\". According to the AppVeyor documentation, the NuGet version is newer than 2.8.5 (2.8.6 or 3.4.x). So what's going wrong here?\r\n\r\nThe command is: `Install-Module -Name Pscx`.\r\nPSCX is provided by PowerShellGallery.\r\n\r\nSo my questions are:\r\n* Why is it not possible to install modules from PowerShellGallery?\r\n* Any other recommendation on how to install Pscx 3.2.2?\r\n* Why is Pscx not installed by default? It's a very common add-on.\r\n\r\nI'm using the \"WMF 5\" image.\r\nMy slug is: \"paebbels/ghdl\".\r\n\r\nThe full error message is:\r\n```\r\nException calling \"ShouldContinue\" with \"2\" argument(s): \"The method or operation is not implemented.\"\r\nAt C:\\Program Files\\WindowsPowerShell\\Modules\\PowerShellGet\\1.0.0.1\\PSModule.psm1:7281 char:8\r\n+     if($Force -or $psCmdlet.ShouldContinue($shouldContinueQueryMessag ...\r\n+        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException\r\n    + FullyQualifiedErrorId : NotImplementedException\r\n \r\nInstall-Module : NuGet provider is required to interact with NuGet-based repositories. Please ensure that '2.8.5.201' or newer version of NuGet provider is installed.\r\nAt C:\\projects\\ghdl\\dist\\appveyor\\install.ps1:19 char:1\r\n+ Install-Module -Name Pscx\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : InvalidOperation: (:) [Install-Module], InvalidOperationException\r\n    + FullyQualifiedErrorId : CouldNotInstallNuGetProvider,Install-Module\r\n```"},"comment":{"url":"https://api.github.com/repos/appveyor/ci/issues/comments/267875184","html_url":"https://github.com/appveyor/ci/issues/1226#issuecomment-267875184","issue_url":"https://api.github.com/repos/appveyor/ci/issues/1226","id":267875184,"user":{"login":"Paebbels","id":956109,"avatar_url":"https://avatars.githubusercontent.com/u/956109?v=3","gravatar_id":"","url":"https://api.github.com/users/Paebbels","html_url":"https://github.com/Paebbels","followers_url":"https://api.github.com/users/Paebbels/followers","following_url":"https://api.github.com/users/Paebbels/following{/other_user}","gists_url":"https://api.github.com/users/Paebbels/gists{/gist_id}","starred_url":"https://api.github.com/users/Paebbels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Paebbels/subscriptions","organizations_url":"https://api.github.com/users/Paebbels/orgs","repos_url":"https://api.github.com/users/Paebbels/repos","events_url":"https://api.github.com/users/Paebbels/events{/privacy}","received_events_url":"https://api.github.com/users/Paebbels/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T03:37:56Z","updated_at":"2016-12-19T03:37:56Z","body":"As reported by @rkeithhill, his solves the problem:\r\n\r\n```PowerShell\r\nInstall-PackageProvider NuGet -Force\r\nImport-PackageProvider NuGet -Force\r\nSet-PSRepository -Name PSGallery -InstallationPolicy Trusted\r\n```\r\n\r\nThis adds NuGet as a package provider and registers PowerShellGallery as a trusted source. So the question remains, if NuGet and PSGallery should be registered/trusted by default? I think it's a very common source for additional needed PowerShell scripts. I'm using Pscx to get a `Write-Zip`, `Write-Tar` CmdLet so I can package my builds in archive files.\r\n\r\nAfter that, PSCX can be installed with this command:\r\n\r\n```PowerShell\r\nInstall-Module Pscx -AllowClobber\r\n```\r\n"}}
{"actor":{"display_login":"Paebbels"}}