Can’t figure out why it won’t work/install
PS C:\Windows\system32> Install-Module powershellcookbook -Repository psgallery
Get-PSGalleryApiAvailability : PowerShell Gallery is currently unavailable. Please try again
later.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\PSGet.psm1:948 char:9
-
Get-PSGalleryApiAvailability -Repository $Repository
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: ( [Get-PSGalleryApiAvailability], InvalidOp
erationException - FullyQualifiedErrorId : PowerShellGalleryUnavailable,Get-PSGalleryApiAvailability
- CategoryInfo : InvalidOperation: ( [Get-PSGalleryApiAvailability], InvalidOp
WARNING: Unable to download the list of available providers. Check your internet connection.
WARNING: Unable to find package provider ‘NuGet’.
PackageManagement\Get-PackageProvider : Unable to find package provider ‘NuGet’.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\PSGet.psm1:2439 char:30
- … etProvider = PackageManagement\Get-PackageProvider -Name NuGet -Force
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : ObjectNotFound: (Microsoft.Power…PackageProvider:GetPackagePr
ovider) [Get-PackageProvider], Exception - FullyQualifiedErrorId : UnknownProvider,Microsoft.PowerShell.PackageManagement.Cmdlets.
GetPackageProvider
- CategoryInfo : ObjectNotFound: (Microsoft.Power…PackageProvider:GetPackagePr
Install-NuGetClientBinaries : NuGet-anycpu.exe is required to interact with NuGet based
galleries. Please ensure that NuGet-anycpu.exe is available under ‘C:\Program
Files\PackageManagement\ProviderAssemblies’ or
‘C:\Users\kefarrell\AppData\Local\PackageManagement\ProviderAssemblies’.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\PSGet.psm1:962 char:9
-
Install-NuGetClientBinaries
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: ( [Install-NuGetClientBinaries], InvalidOpe
rationException - FullyQualifiedErrorId : CouldNotInstallNuGetBinaries,Install-NuGetClientBinaries
- CategoryInfo : InvalidOperation: ( [Install-NuGetClientBinaries], InvalidOpe
WARNING: Unable to download the list of available providers. Check your internet connection.
WARNING: Unable to find module provider ‘NuGet’.
WARNING: The specified PackageManagement provider ‘NuGet’ is not available.
PackageManagement\Install-Package : No match was found for the specified search criteria and
module name ‘powershellcookbook’.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\PSGet.psm1:1009 char:21
- … $null = PackageManagement\Install-Package @PSBoundParameters
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : ObjectNotFound: (Microsoft.Power…InstallPackage:InstallPacka
ge) [Install-Package], Exception - FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.
Cmdlets.InstallPackage
- CategoryInfo : ObjectNotFound: (Microsoft.Power…InstallPackage:InstallPacka
PS C:\Windows\system32>