Skip to content

Module Fails to Install from PSGallery #5

@ronhowe

Description

@ronhowe

I love this module and have used it for years. Recently I tried installing it from the PowerShell Gallery and am getting an error.

PS C:\Users\ronhowe> Install-Module -Name "CliMenu" -Repository "PSGallery" -Verbose -Force
VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'False'; IsRegistered = 'True'.
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: Using the specified source names : 'PSGallery'.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='CliMenu'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'CliMenu'.
VERBOSE: Performing the operation "Install-Module" on target "Version '1.0.52.0' of module 'CliMenu'".
VERBOSE: The installation scope is specified to be 'AllUsers'.
VERBOSE: The specified module will be installed in 'C:\Program Files\WindowsPowerShell\Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'CliMenu' with version '1.0.52.0' from the repository 'https://www.powershellgallery.com/api/v2'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='CliMenu'' for ''.
VERBOSE: InstallPackage' - name='CliMenu', version='1.0.52.0',destination='C:\Users\ronhowe\AppData\Local\Temp\1500915924'
VERBOSE: DownloadPackage' - name='CliMenu', version='1.0.52.0',destination='C:\Users\ronhowe\AppData\Local\Temp\1500915924\CliMenu\CliMenu.nupkg', uri='https://www.powershellgallery.com/api/v2/package/CliMenu/1.0.52'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/CliMenu/1.0.52'.
VERBOSE: Retry downloading 'https://www.powershellgallery.com/api/v2/package/CliMenu/1.0.52' for '2' more times
VERBOSE: Download is incomplete. Downloaded '391588' out of '391588' bytes.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/CliMenu/1.0.52'.
VERBOSE: Completed downloading 'CliMenu'.
VERBOSE: Hash for package 'CliMenu' does not match hash provided from the server.
VERBOSE: InstallPackageLocal' - name='CliMenu', version='1.0.52.0',destination='C:\Users\ronhowe\AppData\Local\Temp\1500915924'
PackageManagement\Install-Package : Package 'CliMenu' failed to be installed because: End of Central Directory record could not be found.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
+ ...          $null = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidResult: (CliMenu:String) [Install-Package], Exception
    + FullyQualifiedErrorId : Package '{0}' failed to be installed because: {1},Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

PS C:\Users\ronhowe>

Anybody know anything?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions